Skip to content

Commit

Permalink
Merge branch 'jk/rerere-forget-check-enabled' into maint
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
Junio C Hamano committed Jun 5, 2015
2 parents 4cb9fe3 + 0544574 commit 5c2e654
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rerere.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5c2e654

Please sign in to comment.