default update hook broken
There's two syntax errors and one good-netizen error in the hooks/update file created when cloning Linus' linux-2.6.git repo. I don't know if that file is created fresh or if it gets pulled from Linus' tree. Here's a patch to fix it
home/willy/replacement-update renamed from hooks/update +3 -4
@@ -8,14 +8,14 @@ # (2) make this file executable by "chmod +x update". # -recipient="[email protected]" +recipient="[email protected]" if expr "$2" : '0*$' >/dev/null then echo "Created a new ref, with the following commits:" git-rev-list --pretty "$3" else - $base=$(git-merge-base "$2" "$3") + base=$(git-merge-base "$2" "$3") case "$base" in "$2") echo "New commits:"
@@ -24,8 +24,7 @@ echo "Rebased ref, commits from common ancestor:" ;; esac -fi -git-rev-list --pretty "$3" "^$base" + git-rev-list --pretty "$3" "^$base" fi | mail -s "Changes to ref $1" "$recipient" exit 0
Quoted 5 lines · Matthew Wilcox
There's two syntax errors and one good-netizen error in the hooks/update file created when cloning Linus' linux-2.6.git repo. I don't know if that file is created fresh or if it gets pulled from Linus' tree. Here's a patch to fix it
Good thing I read new list entries before I send things. I did this exact same patch too. :)
Signature · 3 lines
Andreas Ericsson [email protected] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231