]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
rerere: error out on autoupdate failure
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 3 Dec 2014 04:20:49 +0000 (20:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Jan 2015 21:55:10 +0000 (13:55 -0800)
commit89ea90351dd32fbe384d0cf844640a9c55606f3b
tree243dce4d0a5b0a0bcd4f16ddf677076b62b14eb8
parent7fa1365c54c28b3cd9375539f381b54061a1880d
rerere: error out on autoupdate failure

We have been silently tolerating errors by returning early with an
error that the caller ignores since rerere.autoupdate was introduced
in v1.6.0-rc0~120^2 (2008-06-22).  So on error (for example if the
index is already locked), rerere can return success silently without
updating the index or with only some items in the index updated.

Better to treat such failures as a fatal error so the operator can
figure out what is wrong and fix it.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c