* bd/tests:
Rename the test trash directory to contain spaces.
Fix tests breaking when checkout path contains shell metacharacters
Don't use the 'export NAME=value' in the test scripts.
lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters
test-lib.sh: Fix some missing path quoting
Use test_set_editor in t9001-send-email.sh
test-lib.sh: Add a test_set_editor function to safely set $VISUAL
git-send-email.perl: Handle shell metacharacters in $EDITOR properly
config.c: Escape backslashes in section names properly
git-rebase.sh: Fix --merge --abort failures when path contains whitespace
Conflicts:
t/t9115-git-svn-dcommit-funky-renames.sh
@ -9,7 +9,8 @@ This test runs git rebase and checks that the author information is not lost.
@@ -9,7 +9,8 @@ This test runs git rebase and checks that the author information is not lost.
@ -10,7 +10,8 @@ checks that git cherry only returns the second patch in the local branch
@@ -10,7 +10,8 @@ checks that git cherry only returns the second patch in the local branch
'
. ./test-lib.sh
export GIT_AUTHOR_EMAIL=bogus_email_address
GIT_AUTHOR_EMAIL=bogus_email_address
export GIT_AUTHOR_EMAIL
test_expect_success \
'prepare repository with topic branch, and check cherry finds the 2 patches from there' \
@ -125,7 +125,7 @@ test_expect_success 'use index-filter to move into a subdirectory' '
@@ -125,7 +125,7 @@ test_expect_success 'use index-filter to move into a subdirectory' '
test_expect_success 'commit change from svn side' "
svn co $svnrepo t.svn &&
git commit -a -m "initial"
'
test_expect_success 'commit change from svn side' '
svn co "$svnrepo" t.svn &&
cd t.svn &&
echo second line from svn >> file &&
poke file &&
svn commit -m 'second line from svn' &&
svn commit -m "second line from svn" &&
cd .. &&
rm -rf t.svn
"
'
test_expect_success 'commit conflicting change from git' "
test_expect_success 'commit conflicting change from git' '
echo second line from git >> file &&
git commit -a -m 'second line from git' &&
! git-svn commit-diff -r1 HEAD~1 HEAD $svnrepo
"
git commit -a -m "second line from git" &&
! git-svn commit-diff -r1 HEAD~1 HEAD "$svnrepo"
'
test_expect_success 'commit complementing change from git' "
test_expect_success 'commit complementing change from git' '
git reset --hard HEAD~1 &&
echo second line from svn >> file &&
git commit -a -m 'second line from svn' &&
git commit -a -m "second line from svn" &&
echo third line from git >> file &&
git commit -a -m 'third line from git' &&
git-svn commit-diff -r2 HEAD~1 HEAD $svnrepo
"
git commit -a -m "third line from git" &&
git-svn commit-diff -r2 HEAD~1 HEAD "$svnrepo"
'
test_expect_success 'dcommit fails to commit because of conflict' "
git-svn init $svnrepo &&
test_expect_success 'dcommit fails to commit because of conflict' '
git-svn init "$svnrepo" &&
git-svn fetch &&
git reset --hard refs/remotes/git-svn &&
svn co $svnrepo t.svn &&
svn co "$svnrepo" t.svn &&
cd t.svn &&
echo fourth line from svn >> file &&
poke file &&
svn commit -m 'fourth line from svn' &&
svn commit -m "fourth line from svn" &&
cd .. &&
rm -rf t.svn &&
echo 'fourth line from git' >> file &&
git commit -a -m 'fourth line from git' &&
echo "fourth line from git" >> file &&
git commit -a -m "fourth line from git" &&
! git-svn dcommit
"
'
test_expect_success 'dcommit does the svn equivalent of an index merge' "
git reset --hard refs/remotes/git-svn &&
@ -66,15 +66,15 @@ test_expect_success 'dcommit does the svn equivalent of an index merge' "
@@ -66,15 +66,15 @@ test_expect_success 'dcommit does the svn equivalent of an index merge' "
git-svn dcommit
"
test_expect_success 'commit another change from svn side' "
svn co $svnrepo t.svn &&
test_expect_success 'commit another change from svn side' '
svn co "$svnrepo" t.svn &&
cd t.svn &&
echo third line from svn >> file &&
poke file &&
svn commit -m 'third line from svn' &&
svn commit -m "third line from svn" &&
cd .. &&
rm -rf t.svn
"
'
test_expect_success 'multiple dcommit from git-svn will not clobber svn' "
@ -7,16 +7,16 @@ test_description='git-svn dcommit can commit renames of files with ugly names'
@@ -7,16 +7,16 @@ test_description='git-svn dcommit can commit renames of files with ugly names'
. ./lib-git-svn.sh
test_expect_success 'load repository with strange names' "
@ -10,6 +10,7 @@ commandline, and checks that it would not write any errors
@@ -10,6 +10,7 @@ commandline, and checks that it would not write any errors