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 <mhagger@alum.mit.edu> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Jun 1, 2018 at 07:08 UTC
78f28e2a11acde9381496ef7626a0d509c742af5
1 file changed
+3
-1
t/t9104-git-svn-follow-parent.sh
+3
-1
@@ -213,7 +213,9 @@ test_expect_success "multi-fetch continues to work" "
213
"
214
215
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 &&
219
git reflog expire --all --expire=all &&
220
mkdir "$GIT_DIR/svn" &&
221
git svn multi-fetch