mirror of
https://github.com/git/git.git
synced 2024-12-15 04:46:02 +08:00
e1c0c158b1
These variables were added in 16805d3
(t/t91XX-svn: start
removing use of "git-" from these tests, 2008-09-08) so that
running:
git grep git-
would return fewer hits. At the time, we were transitioning
away from the use of the "dashed" git-foo form.
That transition has been over for years, and grepping for
"git-" in the test suite yields thousands of hits anyway
(all presumably false positives).
With their original purpose gone, these variables serve only
to obfuscate the tests. Let's get rid of them.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
33 lines
594 B
Bash
Executable File
33 lines
594 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2008 Jan Krüger
|
|
#
|
|
|
|
test_description='git svn respects rewriteRoot during rebuild'
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
mkdir import
|
|
(cd import
|
|
touch foo
|
|
svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
|
|
)
|
|
rm -rf import
|
|
|
|
test_expect_success 'init, fetch and checkout repository' '
|
|
git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
|
|
git svn fetch &&
|
|
git checkout -b mybranch remotes/git-svn
|
|
'
|
|
|
|
test_expect_success 'remove rev_map' '
|
|
rm "$GIT_SVN_DIR"/.rev_map.*
|
|
'
|
|
|
|
test_expect_success 'rebuild rev_map' '
|
|
git svn rebase >/dev/null
|
|
'
|
|
|
|
test_done
|
|
|