We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8462634 commit 3800e24Copy full SHA for 3800e24
scripts/init-git-post-commit
@@ -17,9 +17,9 @@ hook=$(cat <<EOF
17
18
### git-stats hook (begin) ###
19
# Copy last commit hash to clipboard on commit
20
-commit_hash=\`git rev-parse HEAD\`
21
-repo_url=\`git config --get remote.origin.url\`
22
-commit_date=\`git log -1 --format=%cd\`
+commit_hash=\$(git rev-parse HEAD)
+repo_url=\$(git config --get remote.origin.url)
+commit_date=\$(git log -1 --format=%cd)
23
commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\""
24
git-stats --record "\$commit_data"
25
### git-stats hook (end) ###
0 commit comments