7ef0d62730
Merge commit '1b593e1ea4d2af0f6444d9a7788d5d99abd6fde5' as 'third_party/git'
31 lines
687 B
Bash
Executable file
31 lines
687 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2009 Eric Wong
|
|
|
|
test_description='git svn old rev_map preservd'
|
|
. ./lib-git-svn.sh
|
|
|
|
test_expect_success 'setup test repository with old layout' '
|
|
mkdir i &&
|
|
(cd i && > a) &&
|
|
svn_cmd import -m- i "$svnrepo" &&
|
|
git svn init "$svnrepo" &&
|
|
git svn fetch &&
|
|
test -d .git/svn/refs/remotes/git-svn/ &&
|
|
! test -e .git/svn/git-svn/ &&
|
|
mv .git/svn/refs/remotes/git-svn .git/svn/ &&
|
|
rm -r .git/svn/refs
|
|
'
|
|
|
|
test_expect_success 'old layout continues to work' '
|
|
svn_cmd import -m- i "$svnrepo/b" &&
|
|
git svn rebase &&
|
|
echo a >> b/a &&
|
|
git add b/a &&
|
|
git commit -m- -a &&
|
|
git svn dcommit &&
|
|
! test -d .git/svn/refs/ &&
|
|
test -e .git/svn/git-svn/
|
|
'
|
|
|
|
test_done
|