mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-09-30 04:01:31 +02:00
Don't use backticks.
This commit is contained in:
parent
84626341be
commit
3800e24870
@ -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 New Issue
Block a user