Skip to content

Commit

Permalink
Merge pull request #278 from tj/delete-submodule-fix
Browse files Browse the repository at this point in the history
Fixes #277.
  • Loading branch information
hemanth committed Nov 20, 2014
2 parents e7990ed + 53e4f3c commit e5585bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-delete-submodule
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e5585bd

Please sign in to comment.