diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-26 13:24:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-26 13:24:42 -0700 |
commit | c37d7b50f345e8f52e3e902384cd87d96decc155 (patch) | |
tree | 81695a605f63cb897a142ff8312fe25cde392751 /rerere.c | |
parent | 9532ead9875b7b92ff2007f9de61af5874e8839a (diff) | |
parent | 0544574cdcd5b368e757fa7bb561c616f81febb9 (diff) | |
download | git-c37d7b50f345e8f52e3e902384cd87d96decc155.tar.gz |
Merge branch 'jk/rerere-forget-check-enabled'
"git rerere forget" in a repository without rerere enabled gave a
cryptic error message; it should be a silent no-op instead.
* jk/rerere-forget-check-enabled:
rerere: exit silently on "forget" when rerere is disabled
Diffstat (limited to 'rerere.c')
-rw-r--r-- | rerere.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -659,6 +659,8 @@ int rerere_forget(struct pathspec *pathspec) return error("Could not read index"); fd = setup_rerere(&merge_rr, RERERE_NOAUTOUPDATE); + if (fd < 0) + return 0; unmerge_cache(pathspec); find_conflict(&conflict); |