summaryrefslogtreecommitdiff
path: root/t/t9126-git-svn-follow-deleted-readded-directory.sh
diff options
context:
space:
mode:
authorAlec Berryman <alec@thened.net>2008-09-14 17:14:16 -0400
committerJunio C Hamano <gitster@pobox.com>2008-09-18 19:21:40 -0700
commitad0a82bae0e08819520ab7442dd3a7eb7532bbe6 (patch)
tree73b185c251a959c37b1dfbd1f424baa161906147 /t/t9126-git-svn-follow-deleted-readded-directory.sh
parentdd9da51fe261f723d206fdd5e4874c25937d1b87 (diff)
downloadgit-ad0a82bae0e08819520ab7442dd3a7eb7532bbe6.tar.gz
git-svn: Always create a new RA when calling do_switch for svn://
Not doing so caused the "Malformed network data" error when a directoy was deleted and replaced with a copy from an older version. Signed-off-by: Alec Berryman <alec@thened.net> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9126-git-svn-follow-deleted-readded-directory.sh')
-rwxr-xr-xt/t9126-git-svn-follow-deleted-readded-directory.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/t9126-git-svn-follow-deleted-readded-directory.sh b/t/t9126-git-svn-follow-deleted-readded-directory.sh
new file mode 100755
index 0000000000..edec640e97
--- /dev/null
+++ b/t/t9126-git-svn-follow-deleted-readded-directory.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Copyright (c) 2008 Alec Berryman
+
+test_description='git svn fetch repository with deleted and readded directory'
+
+. ./lib-git-svn.sh
+
+# Don't run this by default; it opens up a port.
+require_svnserve
+
+test_expect_success 'load repository' '
+ svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9126/follow-deleted-readded.dump
+ '
+
+test_expect_success 'fetch repository' '
+ start_svnserve &&
+ git svn init svn://127.0.0.1:$SVNSERVE_PORT &&
+ git svn fetch
+ '
+
+test_done