diff --git a/git_review/cmd.py b/git_review/cmd.py index 168bb33..77c0250 100755 --- a/git_review/cmd.py +++ b/git_review/cmd.py @@ -539,8 +539,8 @@ 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 --" % ( - use_color, remote, branch) + cmd = ("git log %s --decorate --oneline HEAD --not --remotes=%s" % ( + use_color, remote)) (status, output) = run_command_status(cmd) if status != 0: print("Had trouble running %s" % cmd)