]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - contrib/gcc-changelog/git_update_version.py
gcc-changelog: checkout & pull order
[thirdparty/gcc.git] / contrib / gcc-changelog / git_update_version.py
index 7077880cf80dc5e4714bf565cae902b399b8e037..ac1b206d238c1f6c492b5860ba3fcb29457a4460 100755 (executable)
@@ -137,8 +137,8 @@ else:
             else:
                 branch = repo.create_head(name, ref).set_tracking_branch(ref)
             print('=== Working on: %s ===' % branch, flush=True)
-            origin.pull(rebase=True)
             branch.checkout()
+            origin.pull(rebase=True)
             print('branch pulled and checked out')
             update_current_branch()
             assert not repo.index.diff(None)