mirror of
https://github.com/tj/git-extras.git
synced 2026-09-14 17:36:25 -04:00
Fixes #277
This commit is contained in:
parent
e7990ed810
commit
53e4f3c89d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue