From 17c8a220667660ea0304123a01eb5c31c5052f77 Mon Sep 17 00:00:00 2001 From: Frej Drejhammar Date: Fri, 18 Aug 2017 16:18:10 +0200 Subject: [PATCH] Don't break if the destination directory name contains a space --- hg-fast-export.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 6ccb6f2..e1b50fb 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -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) -- 2.11.4.GIT