summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a30582)
raw | patch | inline | side by side (parent: 1a30582)
author | Eric Wong <normalperson@yhbt.net> | |
Sat, 14 Nov 2009 22:43:20 +0000 (14:43 -0800) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Sat, 14 Nov 2009 22:43:59 +0000 (14:43 -0800) |
The commit for:
git svn: read global+system config for clone+init
Initially lacked a test case because the author was unable to
reproduce it under his test environment, this adds it.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git svn: read global+system config for clone+init
Initially lacked a test case because the author was unable to
reproduce it under his test environment, this adds it.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
t/t9130-git-svn-authors-file.sh | patch | blob | history |
index f5abdb3c7fd24033f1538db51c957345ab86e341..134411e0a56142930a418ca15bd0902837c7bdc1 100755 (executable)
)
'
+test_expect_success 'fresh clone with svn.authors-file in config' '
+ (
+ rm -r "$GIT_DIR" &&
+ test x = x"$(git config svn.authorsfile)" &&
+ HOME="`pwd`" &&
+ export HOME &&
+ test_config="$HOME"/.gitconfig &&
+ unset GIT_CONFIG_NOGLOBAL &&
+ unset GIT_DIR &&
+ unset GIT_CONFIG &&
+ git config --global \
+ svn.authorsfile "$HOME"/svn-authors &&
+ test x"$HOME"/svn-authors = x"$(git config svn.authorsfile)" &&
+ git svn clone "$svnrepo" gitconfig.clone &&
+ cd gitconfig.clone &&
+ nr_ex=$(git log | grep "^Author:.*example.com" | wc -l) &&
+ nr_rev=$(git rev-list HEAD | wc -l) &&
+ test $nr_rev -eq $nr_ex
+ )
+'
+
+test_debug 'GIT_DIR=gitconfig.clone/.git git log'
+
test_done