Fix "matrix changes" when operating in non-default branches.
authorIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Fri, 7 Nov 2008 16:00:56 +0000 (18:00 +0200)
committerIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Fri, 7 Nov 2008 16:00:56 +0000 (18:00 +0200)
matrix/git.py
matrix/repositories.py

index 1bce2a2..d5f17b6 100644 (file)
@@ -287,7 +287,7 @@ def log(name, options, fd=None):
        return call_output(['log'] + options + ['--'], workdir=name, fd=fd)
 
 def changes(name, commit):
-       spec = '%s..HEAD' % commit
+       spec = '%s..' % commit
        cmd = ['log', '--pretty=format:%h %s', spec, '--']
 
        return call_output(cmd, workdir=name)
index 236543c..fd59d3a 100644 (file)
@@ -198,7 +198,7 @@ class Repository(object):
 
                branch, remote = self.__get_branch_remote()
 
-               output = git.changes(self.path, remote)
+               output = git.changes(self.path, "%s/%s" % (remote, branch))
                if output:
                        print
                        for line in output: