contrib: run fetch before pushing Daily bump
commit59110467908baf11d3c2100e29bdbf7090e11940
authorMartin Liska <mliska@suse.cz>
Wed, 5 Oct 2022 18:39:19 +0000 (5 20:39 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 5 Oct 2022 18:42:43 +0000 (5 20:42 +0200)
tree9997cb020857d2c0ec5021d6b33fc8fbe680f7e0
parentef878564140cbcf23f479da88e07e5a996cec6bb
contrib: run fetch before pushing Daily bump

As seen from recent days, the script fails when it pushes
a branch while another revision was pushed by a user.
Prevent that by doing fetch right before the pull.

The error message example:

cmdline: git push origin releases/gcc-11
stderr: 'fatal: unable to parse object: 4249a65c814287af667aa78789436d3fc618e80a
error: remote unpack failed: eof before pack header was fully read

contrib/ChangeLog:

* gcc-changelog/git_update_version.py: Do fetch before a push.
contrib/gcc-changelog/git_update_version.py