mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-11-18 01:40:40 +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) ###
|
### git-stats hook (begin) ###
|
||||||
# Copy last commit hash to clipboard on commit
|
# Copy last commit hash to clipboard on commit
|
||||||
commit_hash=\`git rev-parse HEAD\`
|
commit_hash=\$(git rev-parse HEAD)
|
||||||
repo_url=\`git config --get remote.origin.url\`
|
repo_url=\$(git config --get remote.origin.url)
|
||||||
commit_date=\`git log -1 --format=%cd\`
|
commit_date=\$(git log -1 --format=%cd)
|
||||||
commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\""
|
commit_data="\"{ \"date\": \"\$commit_date\", \"url\": \"\$repo_url\", \"hash\": \"\$commit_hash\" }\""
|
||||||
git-stats --record "\$commit_data"
|
git-stats --record "\$commit_data"
|
||||||
### git-stats hook (end) ###
|
### git-stats hook (end) ###
|
||||||
|
|
Loading…
Reference in a new issue