From fe93b4bca7e69360dca6d5a8ae83cfc2fa7ce453 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 21 Mar 2010 13:46:09 -0400 Subject: [PATCH] Update the git post-receive hook for git's new default description. --- git-hooks/zephyr-post-receive | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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/..")") -- 2.44.0