gcc-changelog: checkout & pull order
authorMartin Liska <mliska@suse.cz>
Thu, 18 Jun 2020 12:44:04 +0000 (14:44 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 18 Jun 2020 12:45:39 +0000 (14:45 +0200)
contrib/ChangeLog:

* gcc-changelog/git_update_version.py: First checkout and then
run git pull ---rebase.

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)