[PATCHv2 0/4] Fix git submodule add for funky paths
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Feb 25, 2009, 13:26 UTC
- Message-ID
- <1235568392-19705-1-git-send-email-git@drmicha.warpmail.net>
- In-Reply-To
- <49A541D3.4030001@viscovery.net>
As reported by Andrei Thorp <garoth@gmail.com>, git submodule add does not work with paths containing './'. This series exposes the problem with tests and fixes it. (For details see the commit messages.)
On a side note: There were no tests at all so far for git submodule add. Now there are at least two, but there should be more, especially for adding repos in place and such.
v2 adds 2 more tests for paths with // and /.. and helps g sm add pass the tests.
Michael J Gruber (4):
git submodule: Add test cases for git submodule add
git submodule: Fix adding of submodules at paths with ./
git submodule: Add more tests for add with funky paths
git submodule: Fix handling of // and /.. in paths for added
submodulesgit-submodule.sh | 9 +++++++++ t/t7400-submodule-basic.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 0 deletions(-)