Skip to content

Commit

Permalink
Fix remove-submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Oct 20, 2016
1 parent 1c6864c commit 441c182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-remove-submodule
Expand Up @@ -15,7 +15,7 @@ git submodule status "$SUBMODULE_NAME" >/dev/null 2>&1 || {
test ! -f $ROOT/.gitmodules && echo "File .gitmodules not found" 1>&2 && exit 2

git submodule deinit -f "$SUBMODULE_NAME" && git rm -f "$SUBMODULE_NAME" && {
SUBMODULE_PATH=$(python -c "import os.path; print os.path.relpath('$SUBMODULE_NAME','$ROOT')")
SUBMODULE_PATH=$(python2 -c "import os.path; print os.path.relpath('$SUBMODULE_NAME','$ROOT')")
git config -f $ROOT/.gitmodules --remove-section "submodule.$SUBMODULE_PATH"
if [ -z "$(cat $ROOT/.gitmodules)" ]; then
git rm -f $ROOT/.gitmodules
Expand Down

0 comments on commit 441c182

Please sign in to comment.