Merge pull request #278 from tj/delete-submodule-fix

Fixes #277.
This commit is contained in:
hemanth.hm 2014-11-21 00:35:04 +05:30
commit e5585bd846

View file

@ -8,6 +8,6 @@ test ! -f .gitmodules && echo ".gitmodules file not found" 1>&2 && exit 2
NAME=$(echo $submodule | sed 's/\/$//g')
test -z $(git config --file=.gitmodules submodule.$NAME.url) && echo "submodule not found" 1>&2 && exit 3
git config --remove-section submodule.$NAME
git config --file=.gitmodules --remove-section submodule.$NAME
git submodule deinit $NAME
git rm --cached $NAME
rm -rf .git/modules/$NAME