diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-05-26 22:24:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-26 22:24:42 +0200 |
commit | c37d7b50f345e8f52e3e902384cd87d96decc155 (patch) | |
tree | 81695a605f63cb897a142ff8312fe25cde392751 /rerere.c | |
parent | Fourth batch for 2.5 cycle (diff) | |
parent | rerere: exit silently on "forget" when rerere is disabled (diff) | |
download | git-c37d7b50f345e8f52e3e902384cd87d96decc155.tar.xz git-c37d7b50f345e8f52e3e902384cd87d96decc155.zip |
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); |