summaryrefslogtreecommitdiff
path: root/t/t9104-git-svn-follow-parent.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-25 20:22:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-25 20:22:41 (GMT)
commit90fa1c5d6c00e44f4c901da0cf4015db916eca03 (patch)
treee9f0eeb1227dc47896fbf86ddc63543764bd6daa /t/t9104-git-svn-follow-parent.sh
parent9eb97278e5406bf463e7e1fa359466fca9859f26 (diff)
parent78f28e2a11acde9381496ef7626a0d509c742af5 (diff)
downloadgit-90fa1c5d6c00e44f4c901da0cf4015db916eca03.zip
git-90fa1c5d6c00e44f4c901da0cf4015db916eca03.tar.gz
git-90fa1c5d6c00e44f4c901da0cf4015db916eca03.tar.bz2
Merge branch 'cc/tests-without-assuming-ref-files-backend'
Instead of mucking with filesystem directly, use plumbing commands update-ref etc. to manipulate the refs in the tests. * cc/tests-without-assuming-ref-files-backend: t9104: kosherly remove remote refs
Diffstat (limited to 't/t9104-git-svn-follow-parent.sh')
-rwxr-xr-xt/t9104-git-svn-follow-parent.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t9104-git-svn-follow-parent.sh b/t/t9104-git-svn-follow-parent.sh
index 9c49b6c..5e0ad19 100755
--- a/t/t9104-git-svn-follow-parent.sh
+++ b/t/t9104-git-svn-follow-parent.sh
@@ -215,7 +215,9 @@ test_expect_success "multi-fetch continues to work" "
"
test_expect_success "multi-fetch works off a 'clean' repository" '
- rm -rf "$GIT_DIR/svn" "$GIT_DIR/refs/remotes" &&
+ rm -rf "$GIT_DIR/svn" &&
+ git for-each-ref --format="option no-deref%0adelete %(refname)" refs/remotes |
+ git update-ref --stdin &&
git reflog expire --all --expire=all &&
mkdir "$GIT_DIR/svn" &&
git svn multi-fetch