From: Evan Broder Date: Sun, 21 Mar 2010 17:46:09 +0000 (-0400) Subject: Update the git post-receive hook for git's new default description. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/fe93b4bca7e69360dca6d5a8ae83cfc2fa7ce453 Update the git post-receive hook for git's new default description. --- diff --git a/git-hooks/zephyr-post-receive b/git-hooks/zephyr-post-receive index 11e36c6..71e96bc 100755 --- a/git-hooks/zephyr-post-receive +++ b/git-hooks/zephyr-post-receive @@ -22,7 +22,9 @@ if [ -z "$zsig" ]; then if [ -e "$GIT_DIR/description" ]; then zsig=`cat "$GIT_DIR/description"` fi - if [ -z "$zsig" ] || [ "$zsig" = "Unnamed repository; edit this file to name it for gitweb." ]; then + if [ -z "$zsig" ] || \ + [ "$zsig" = "Unnamed repository; edit this file to name it for gitweb." ] || \ + [ "$zsig" = "Unnamed repository; edit this file 'description' to name the repository." ]; then zsig=$(basename "$(readlink -f "$GIT_DIR")") if [ "$zsig" = ".git" ]; then zsig=$(basename "$(readlink -f "$GIT_DIR/..")")