X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=submodules%2Fremove;h=f8d6d9452ab4d2a1c898799bbaffb475b8c76ce4;hb=f9a2c7f20a7df079c05e27680f4d6ce87f5a27c8;hp=685fbb5477ec2cb368c5c63e88a3b7a57b496d00;hpb=88545271297391f40bdcc87ab491cbc41d0f78e0;p=git-scripts.git diff --git a/submodules/remove b/submodules/remove index 685fbb5..f8d6d94 100755 --- a/submodules/remove +++ b/submodules/remove @@ -6,9 +6,10 @@ if [ $# != 1 ]; then exit 1 fi -cd `git rev-parse --show-toplevel` || exit 1 +cd "`git rev-parse --show-toplevel`" || exit 1 if [ \! -f .gitmodules ]; then echo "The command must be run in the top-level directory" >&2 + echo "of a repository with submodules" >&2 exit 1 fi