Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t9118: workaround inconsistency between SVN versions
author
Michael G. Schwern
<schwern@pobox.com>
Sat, 28 Jul 2012 09:47:45 +0000
(
02:47
-0700)
committer
Eric Wong
<normalperson@yhbt.net>
Thu, 2 Aug 2012 21:45:58 +0000
(21:45 +0000)
SVN 1.7 will truncate "not-a%40{0}" to just "not-a".
Rather than guess what SVN is going to do for each version, make the test use
the branch name that was actually created.
[ew: commit title]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
t/t9118-git-svn-funky-branch-names.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
565e56c
)
diff --git
a/t/t9118-git-svn-funky-branch-names.sh
b/t/t9118-git-svn-funky-branch-names.sh
index 63fc982c8cdbd9c19eb06bba58ad5e86da5dd03e..193d3cabddec0c4ed63edeade9b3fb93bef790bb 100755
(executable)
--- a/
t/t9118-git-svn-funky-branch-names.sh
+++ b/
t/t9118-git-svn-funky-branch-names.sh
@@
-32,6
+32,11
@@
test_expect_success 'setup svnrepo' '
start_httpd
'
start_httpd
'
+# SVN 1.7 will truncate "not-a%40{0]" to just "not-a".
+# Look at what SVN wound up naming the branch and use that.
+# Be sure to escape the @ if it shows up.
+non_reflog=`svn_cmd ls "$svnrepo/pr ject/branches" | grep not-a | sed 's/\///' | sed 's/@/%40/'`
+
test_expect_success 'test clone with funky branch names' '
git svn clone -s "$svnrepo/pr ject" project &&
(
test_expect_success 'test clone with funky branch names' '
git svn clone -s "$svnrepo/pr ject" project &&
(
@@
-42,7
+47,7
@@
test_expect_success 'test clone with funky branch names' '
git rev-parse "refs/remotes/%2Eleading_dot" &&
git rev-parse "refs/remotes/trailing_dot%2E" &&
git rev-parse "refs/remotes/trailing_dotlock%2Elock" &&
git rev-parse "refs/remotes/%2Eleading_dot" &&
git rev-parse "refs/remotes/trailing_dot%2E" &&
git rev-parse "refs/remotes/trailing_dotlock%2Elock" &&
- git rev-parse "refs/remotes/
not-a%40{0}
reflog"
+ git rev-parse "refs/remotes/
$non_
reflog"
)
'
)
'