Skip to content

Commit 3ca399d

Browse files
jaysoffiangitster
authored andcommitted
MERGE_RR is in .git, not .git/rr-cache
0af0ac7 (Move MERGE_RR from .git/rr-cache/ into .git/) moved the location of MERGE_RR but I found a few references to the old location. Signed-off-by: Jay Soffian <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1b79d1c commit 3ca399d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

builtin/rerere.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ int cmd_rerere(int argc, const char **argv, const char *prefix)
135135
if (!has_rerere_resolution(name))
136136
unlink_rr_item(name);
137137
}
138-
unlink_or_warn(git_path("rr-cache/MERGE_RR"));
138+
unlink_or_warn(git_path("MERGE_RR"));
139139
} else if (!strcmp(argv[1], "gc"))
140140
garbage_collect(&merge_rr);
141141
else if (!strcmp(argv[1], "status"))

t/t4151-am-abort.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ do
4747
test_must_fail git am$with3 --skip >output &&
4848
test "$(grep "^Applying" output)" = "Applying: 6" &&
4949
test_cmp file-2-expect file-2 &&
50-
test ! -f .git/rr-cache/MERGE_RR
50+
test ! -f .git/MERGE_RR
5151
'
5252

5353
test_expect_success "am --abort goes back after failed am$with3" '
@@ -57,7 +57,7 @@ do
5757
test_cmp expect actual &&
5858
test_cmp file-2-expect file-2 &&
5959
git diff-index --exit-code --cached HEAD &&
60-
test ! -f .git/rr-cache/MERGE_RR
60+
test ! -f .git/MERGE_RR
6161
'
6262

6363
done

0 commit comments

Comments
 (0)