Commit 09ba6e85 authored by Kai Willadsen's avatar Kai Willadsen

vc.git: Fix ambiguous argument when checking unpushed commits (#233)

In a situation where file/folder and branch are named the same, our
helper that checks for unpushed commits on the branch ends us emitting
an ambiguous git command line.
parent be7676f8
......@@ -116,7 +116,7 @@ class Vc(_vc.Vc):
except ValueError:
continue
proc = self.run("rev-list", branch, "^" + remote)
proc = self.run("rev-list", branch, "^" + remote, "--")
revisions = proc.stdout.read().split("\n")[:-1]
branch_revisions[branch] = revisions
return branch_revisions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment