]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-checkout-touch
Change git repack depth from 250 to 20
[git-scripts.git] / hooks / post-checkout-touch
index 713395f2fb7eb54db24e2def67e0962b73bc450e..2c5e625330c5d18b0ce0a50dccb408df4cddc640 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\" | awk '{if (NR==1) print}'`" &&
+   commit_date="`git show --format='%cD' | head -1`" &&
    touch --date="$commit_date" `git ls-files --cached`
 fi