mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Don't use backticks.
This commit is contained in:
parent
84626341be
commit
3800e24870
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@ hook=$(cat <<EOF
|
|||
|
||||
### git-stats hook (begin) ###
|
||||
# Copy last commit hash to clipboard on commit
|
||||
commit_hash=\`git rev-parse HEAD\`
|
||||
repo_url=\`git config --get remote.origin.url\`
|
||||
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)
|
||||
commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\""
|
||||
git-stats --record "\$commit_data"
|
||||
### git-stats hook (end) ###
|
||||
|
|
Loading…
Reference in a new issue