summaryrefslogtreecommitdiff
path: root/templates/hooks--update.sample
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-09-23 09:38:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-23 16:31:45 (GMT)
commit6a117da6e523a82115733682f4d3f59755897d5a (patch)
treedbb93c108c236466465959aa5c313c6981148c80 /templates/hooks--update.sample
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc (diff)
downloadgit-6a117da6e523a82115733682f4d3f59755897d5a.zip
git-6a117da6e523a82115733682f4d3f59755897d5a.tar.gz
git-6a117da6e523a82115733682f4d3f59755897d5a.tar.bz2
hooks--pre-push.sample: modernize script
The preferred form for a command substitution is $() over ``. Use this form for the command substitution in the sample hook. The preferred form for conditional tests is to use `test` over []. Replace [] with `test`. Finally, replace all instances of "sha" with "oid". Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/hooks--update.sample')
0 files changed, 0 insertions, 0 deletions