Displaying 1 result from an estimated 1 matches for "v_cmd".
Did you mean:
tv_cmd
2009 Sep 22
1
new git hook to be installed
...uot;$1"
@@ -109,6 +148,26 @@ case "$refname","$newrev_type" in
fi
;;
refs/tags/*,tag)
+ case $refname in
+ refs/tags/git-control-*)
+ cmd=$(git cat-file -p $newrev|tail -n+6)
+ git config hooks.server.config-changing.valid-commands |
+ (while read v_cmd; do
+ if test "x$cmd" = "x$v_cmd"; then
+ echo Running cmd: "$v_cmd"
+ eval "$v_cmd"
+ match=1
+ exit 0 # found a match
+ fi
+ done
+ exit 1 # signal failure to match
+ )
+ if test $? = 1; then
+ echo "***...