Skip to content

Commit 78f28e2

Browse files
chriscoolgitster
authored andcommitted
t9104: kosherly remove remote refs
As there are plans to implement other ref storage systems, let's use a way to remove remote refs that does not depend on refs being files. This makes it clear to readers that this test does not depend on which ref backend is used. Suggested-by: Michael Haggerty <[email protected]> Helped-by: Jeff King <[email protected]> Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5340d47 commit 78f28e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t9104-git-svn-follow-parent.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ test_expect_success "multi-fetch continues to work" "
213213
"
214214

215215
test_expect_success "multi-fetch works off a 'clean' repository" '
216-
rm -rf "$GIT_DIR/svn" "$GIT_DIR/refs/remotes" &&
216+
rm -rf "$GIT_DIR/svn" &&
217+
git for-each-ref --format="option no-deref%0adelete %(refname)" refs/remotes |
218+
git update-ref --stdin &&
217219
git reflog expire --all --expire=all &&
218220
mkdir "$GIT_DIR/svn" &&
219221
git svn multi-fetch

0 commit comments

Comments
 (0)