git-svn: add an option to skip the creation of empty directories
"git svn mkdirs" (which creates empty directories in the current working copy) can be very slow and is often unnecessary. Provide a config file option "svn-remote.<name>.automkdirs" that prevents empty directories from being created automatically. (They are still created if "git svn mkdirs" is invoked explicitly.) Based-on-patch-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
6acef04358
commit
55f9d7a75c
@@ -28,6 +28,23 @@ test_expect_success 'empty directories exist' '
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success 'option automkdirs set to false' '
|
||||
(
|
||||
git svn init "$svnrepo" cloned-no-mkdirs &&
|
||||
cd cloned-no-mkdirs &&
|
||||
git config svn-remote.svn.automkdirs false &&
|
||||
git svn fetch &&
|
||||
for i in a b c d d/e d/e/f "weird file name"
|
||||
do
|
||||
if test -d "$i"
|
||||
then
|
||||
echo >&2 "$i exists"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success 'more emptiness' '
|
||||
svn_cmd mkdir -m "bang bang" "$svnrepo"/"! !"
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user