]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: avoid using errno clobbered by rollback_lock_file()
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 25 Apr 2018 12:28:17 +0000 (14:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2018 03:28:42 +0000 (12:28 +0900)
commitbf5c0571d6542d992380467c26cb7bdcab23fcb5
treec5817e67d506c2c394adab0c213b804c14873b50
parent1f1cddd558b54bb0ce19c8ace353fd07b758510d
sequencer: avoid using errno clobbered by rollback_lock_file()

As pointed out in a review of the `--rebase-merges` patch series,
`rollback_lock_file()` clobbers errno. Therefore, we have to report the
error message that uses errno before calling said function.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c