bug/1144800: Fix fatal: both revision and filename

Although bug/1144800 as described was fixed in
Icd62c2ee359b95877097a57a3b517434d9f7f5e0
there is still a corner case where "HEAD" is the
file in the repository.

Change-Id: I0954e99b972a5b008fa7a0b9a64824b8daacd541
This commit is contained in:
Marcin Cieslak 2013-03-05 01:59:48 +01:00
parent 5431ca2042
commit 8e196f4bb0

View File

@ -500,7 +500,7 @@ def assert_one_change(remote, branch, yes, have_hook):
use_color = "--color=%s" % color
else:
use_color = ""
cmd = "git log %s --decorate --oneline HEAD --not remotes/%s/%s" % (
cmd = "git log %s --decorate --oneline HEAD --not remotes/%s/%s --" % (
use_color, remote, branch)
(status, output) = run_command_status(cmd)
if status != 0: