Update the git post-receive hook for git's new default description.
authorEvan Broder <broder@mit.edu>
Sun, 21 Mar 2010 17:46:09 +0000 (13:46 -0400)
committerEvan Broder <broder@mit.edu>
Sun, 21 Mar 2010 17:46:09 +0000 (13:46 -0400)
git-hooks/zephyr-post-receive

index 11e36c6af10fdf9dab898a71d2d5d4625da6e967..71e96bccad9f2e057d733eef73bc687d58a21ca6 100755 (executable)
@@ -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/..")")