author | Jens Lehmann <Jens.Lehmann@web.de> | |
Sat, 4 Dec 2010 23:27:35 +0000 (00:27 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 7 Dec 2010 00:42:07 +0000 (16:42 -0800) | ||
commit | 69e7236c6df44bfcde8913972b75a6ccb360d58f | |
tree | 3858142dcbd1a82116ce8e26bf6afebf4b610727 | tree | snapshot |
parent | 502dc5b663fe3fe241accca5eda28a94d674fbb6 | commit | diff |
git submodule: Remove now obsolete tests before cloning a repo
Since 55892d23 "git clone" itself checks that the destination path is not
a file but an empty directory if it exists, so there is no need anymore
for module_clone() to check that too.
Two tests have been added to test the behavior of "git submodule add" when
path is a file or a directory (A subshell had to be added to the former
last test to stay in the right directory).
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since 55892d23 "git clone" itself checks that the destination path is not
a file but an empty directory if it exists, so there is no need anymore
for module_clone() to check that too.
Two tests have been added to test the behavior of "git submodule add" when
path is a file or a directory (A subshell had to be added to the former
last test to stay in the right directory).
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history | |
t/t7400-submodule-basic.sh | diff | blob | history |