Skip to content

Commit 3800e24

Browse files
committed
Don't use backticks.
1 parent 8462634 commit 3800e24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/init-git-post-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ hook=$(cat <<EOF
1717
1818
### git-stats hook (begin) ###
1919
# 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\`
20+
commit_hash=\$(git rev-parse HEAD)
21+
repo_url=\$(git config --get remote.origin.url)
22+
commit_date=\$(git log -1 --format=%cd)
2323
commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\""
2424
git-stats --record "\$commit_data"
2525
### git-stats hook (end) ###

0 commit comments

Comments
 (0)