mirror of
https://github.com/git/git.git
synced 2024-11-09 02:33:11 +01:00
f61cc48d28
When using git-svn to follow only a single (empty) path per
svn-remote (i.e. not using --stdlayout), following the history
of a renamed path was broken in
c586879cdf
.
This reverts the regression for the single (emtpy) path per
svn-remote case.
To avoid breaking the tests in a committed revision, this is an
addendum to a patch originally submitted by
Santhosh Kumar Mani <santhoshmani@gmail.com>:
> git-svn: add test for renamed directory fetch
>
> This test tries to fetch a directory which had renames in the
> history from a SVN repository.
[ew: unneccesary dependency on the starting an HTTP server
removed from Santhosh's original test.]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 lines
372 B
Bash
Executable file
20 lines
372 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2008 Santhosh Kumar Mani
|
|
|
|
|
|
test_description='git-svn can fetch renamed directories'
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
test_expect_success 'load repository with renamed directory' "
|
|
svnadmin load -q $rawsvnrepo < ../t9121/renamed-dir.dump
|
|
"
|
|
|
|
test_expect_success 'init and fetch repository' "
|
|
git svn init $svnrepo/newname &&
|
|
git svn fetch
|
|
"
|
|
|
|
test_done
|
|
|