Don't break if the destination directory name contains a space

This commit is contained in:
Frej Drejhammar
2017-08-18 16:18:10 +02:00
parent 7aa82e8234
commit 17c8a22066

View File

@@ -70,7 +70,7 @@ if test "z$IS_BARE" != ztrue; then
# This is not a bare repo, cd to the toplevel
TOPLEVEL=$(git rev-parse --show-toplevel) \
|| (echo "Could not find git repo toplevel" ; exit 1)
cd $TOPLEVEL || exit 1
cd "$TOPLEVEL" || exit 1
fi
GIT_DIR=$(git rev-parse --git-dir) || (echo "Could not find git repo" ; exit 1)