diff options
author | Alec Berryman <alec@thened.net> | 2008-09-14 17:14:16 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-18 19:21:40 -0700 |
commit | ad0a82bae0e08819520ab7442dd3a7eb7532bbe6 (patch) | |
tree | 73b185c251a959c37b1dfbd1f424baa161906147 /t/t9126-git-svn-follow-deleted-readded-directory.sh | |
parent | dd9da51fe261f723d206fdd5e4874c25937d1b87 (diff) | |
download | git-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-x | t/t9126-git-svn-follow-deleted-readded-directory.sh | 22 |
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 |