git-svn: allow --version to work anywhere
Checking the version of the installed SVN libraries should not require a git repository at all. This matches the behavior of "git --version". Add a test for "git svn help" for the same behavior while we're at it, too. Signed-off-by: Eric Wong <e@80x24.org>
This commit is contained in:
@ -19,6 +19,25 @@ case "$GIT_SVN_LC_ALL" in
|
||||
;;
|
||||
esac
|
||||
|
||||
deepdir=nothing-above
|
||||
ceiling=$PWD
|
||||
|
||||
test_expect_success 'git svn --version works anywhere' '
|
||||
mkdir -p "$deepdir" && (
|
||||
export GIT_CEILING_DIRECTORIES="$ceiling" &&
|
||||
cd "$deepdir" &&
|
||||
git svn --version
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success 'git svn help works anywhere' '
|
||||
mkdir -p "$deepdir" && (
|
||||
export GIT_CEILING_DIRECTORIES="$ceiling" &&
|
||||
cd "$deepdir" &&
|
||||
git svn help
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success \
|
||||
'initialize git svn' '
|
||||
mkdir import &&
|
||||
|
Reference in New Issue
Block a user