2008-06-24 00:17:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (c) 2008 Jan Krüger
|
|
|
|
#
|
|
|
|
|
2008-09-08 10:02:08 +00:00
|
|
|
test_description='git svn respects rewriteRoot during rebuild'
|
2008-06-24 00:17:36 +00:00
|
|
|
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
|
|
|
|
mkdir import
|
|
|
|
cd import
|
|
|
|
touch foo
|
2008-09-09 21:25:27 +00:00
|
|
|
svn import -m 'import for git svn' . "$svnrepo" >/dev/null
|
2008-06-24 00:17:36 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf import
|
|
|
|
|
|
|
|
test_expect_success 'init, fetch and checkout repository' '
|
|
|
|
git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
|
|
|
|
git svn fetch
|
2008-09-08 10:02:05 +00:00
|
|
|
git checkout -b mybranch ${remotes_git_svn}
|
2008-06-24 00:17:36 +00:00
|
|
|
'
|
|
|
|
|
|
|
|
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
|
|
|
|
|