chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hooks/pre-commit.sh: fix bashism
[topgit.git]
/
hooks
/
pre-commit.sh
diff --git
a/hooks/pre-commit.sh
b/hooks/pre-commit.sh
index a12cfa6dec2797d1e97f23b665951035ae9df09e..9d677e91279a4275e284fd94077e5a4a90a366d1 100644
(file)
--- a/
hooks/pre-commit.sh
+++ b/
hooks/pre-commit.sh
@@
-20,7
+20,7
@@
tg_util
if head_=$(git symbolic-ref -q HEAD); then
case "$head_" in
refs/heads/*)
if head_=$(git symbolic-ref -q HEAD); then
case "$head_" in
refs/heads/*)
- git rev-parse -q --verify "
${head_/#refs\/heads/refs\/top-base
s}" >/dev/null || exit 0;;
+ git rev-parse -q --verify "
refs/top-bases${head_#refs/head
s}" >/dev/null || exit 0;;
*)
exit 0;;
esac
*)
exit 0;;
esac