pull: Prefix local branch with 'refs/heads/'
authorDoesnot Matter <you@example.com>
Thu, 26 May 2022 17:54:15 +0000 (19:54 +0200)
committerDoesnot 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

index c9bea152cccce07f913b271b088f62172663b103..d8ece7017e636fa82eebecdc6be5b1eac21060dd 100755 (executable)
@@ -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)