commit: 680b83d76c52aad61fa1c1d8ab0338305e015ad4
parent e9fe2864d8c33afe52a6e9cc11d32e2cccbd39c2
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 11 Jul 2017 17:50:34 +0200
git-hooks/post-update: Fix base & base.work creation
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-hooks/post-update b/git-hooks/post-update
@@ -10,10 +10,10 @@ printf "$update_f" info
git update-server-info && is_ok
printf "$update_f" work
-GIT_INDEX_FILE="${base}.work/.git/index" git --work-tree="${base}.work" --git-dir="${base}.git" checkout -f && is_ok
+mkdir -p "${base}.work/.git" && GIT_INDEX_FILE="${base}.work/.git/index" git --work-tree="${base}.work" --git-dir="${base}.git" checkout -f && is_ok
printf "$update_f" stagit
-mkdir ${base} && cd "${base}" && stagit -c "${base}.cache" "${base}.git" && is_ok
+mkdir -p ${base} && cd "${base}" && stagit -c "${base}.cache" "${base}.git" && is_ok
printf "$update_f" stagit-index
cd /git && stagit-index *.git > /git/index.html && is_ok