projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03348fd
)
pull: Prefix local branch with 'refs/heads/'
author
Doesnot Matter
<you@example.com>
Thu, 26 May 2022 17:54:15 +0000
(19:54 +0200)
committer
Doesnot Matter
<you@example.com>
Thu, 26 May 2022 17:55:26 +0000
(19:55 +0200)
This can resolve ambiguity when generating the rev list.
Closes: #966627
gbp/scripts/pull.py
patch
|
blob
|
history
diff --git
a/gbp/scripts/pull.py
b/gbp/scripts/pull.py
index c9bea152cccce07f913b271b088f62172663b103..d8ece7017e636fa82eebecdc6be5b1eac21060dd 100755
(executable)
--- a/
gbp/scripts/pull.py
+++ b/
gbp/scripts/pull.py
@@
-49,7
+49,8
@@
def fast_forward_branch(rem_repo, branch, repo, options):
gbp.log.warn("No branch tracking '%s' found - skipping." % branch)
return False
- can_fast_forward, up_to_date = repo.is_fast_forward(branch, remote)
+ can_fast_forward, up_to_date = repo.is_fast_forward(repo.ensure_refs_heads(branch),
+ remote)
if up_to_date: # Great, we're done
gbp.log.info("Branch '%s' is already up to date." % branch)