Merge branch 'jk/rerere-forget-check-enabled' into maint

"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
maint
Junio C Hamano 2015-06-05 12:00:25 -07:00
commit 5c2e65497b
1 changed files with 2 additions and 0 deletions

View File

@ -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);