]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-checkout-touch-all
Change git repack depth from 250 to 20
[git-scripts.git] / hooks / post-checkout-touch-all
index 56ca2f4c22c5a46a783e4bed7ed011d2a89e378d..2f5e80cc0086e01330ef58ce61d721f47d67f6f1 100755 (executable)
@@ -8,7 +8,7 @@ new_HEAD="$2"
 new_branch="$3"
 
 if [ "$new_branch" = 1 ]; then
-   commit_date="`git show --format='%cD' \"$new_HEAD\" | head -1`" &&
+   commit_date="`git show --format='%cD' | head -1`" &&
    find . \( -name .git -type d -prune \) -o -exec touch --date="$commit_date" '{}' \+
 fi