mirror of https://gerrit.osmocom.org/osmo-dev
gits: fix git_can_fast_forward: use arg instead of HEAD
Change-Id: Idec9c9b9b7eddea2dc574fe41f73c0ac570630ca
This commit is contained in:
parent
2a30b520c4
commit
39b19b687c
2
src/gits
2
src/gits
|
@ -103,7 +103,7 @@ def git_has_modifications(git_dir):
|
|||
|
||||
|
||||
def git_can_fast_forward(git_dir, branch='master', remote='origin'):
|
||||
return git_bool(git_dir, 'merge-base', '--is-ancestor', 'HEAD', remote + '/' + branch)
|
||||
return git_bool(git_dir, 'merge-base', '--is-ancestor', branch, remote + '/' + branch)
|
||||
|
||||
|
||||
def format_branch_ahead_behind(branch, ahead, behind):
|
||||
|
|
Loading…
Reference in New Issue