gcc-changelog: checkout & pull order

contrib/ChangeLog:

	* gcc-changelog/git_update_version.py: First checkout and then
	run git pull ---rebase.
This commit is contained in:
Martin Liska 2020-06-18 14:44:04 +02:00
parent 81caacc273
commit 9b4bdaf794
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
1 changed files with 1 additions and 1 deletions

View File

@ -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)