{"thread":{"id":"17846","subject":"[PATCH] Modify description file to say what this file is","startedAt":"2009-02-17T08:58:40Z","lastAt":"2009-02-17T08:58:40Z","messageCount":1,"participants":["John Tapsell"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"105104","messageId":"43d8ce650902170058l7163b060x4ab89cf327395357@mail.gmail.com","threadId":"17846","inReplyTo":null,"subject":"[PATCH] Modify description file to say what this file is","fromName":"John Tapsell","fromEmail":"johnflux@gmail.com","sentAt":"2009-02-17T08:58:40Z","receivedAt":"2009-02-17T08:58:40Z","isPatch":true,"sender":{"key":"johnflux@gmail.com","avatar":"https://gravatar.com/avatar/25f70d4c0f96396b84a2e34bcd9bdc233462c7b4be29b5fdca8266fc53f30b0c?d=mp&s=160"},"body":"A lot of people see this message for the first time on the gitweb\ninterface, where there is no clue as to what 'this file' means.\n\nSigned-off-by: John Tapsell <johnflux@gmail.com>\n---\n templates/hooks--update.sample |    5 +++--\n templates/this--description    |    2 +-\n 2 files changed, 4 insertions(+), 3 deletions(-)\n\ndiff --git a/templates/hooks--update.sample b/templates/hooks--update.sample\nindex 93c6055..f753d28 100755\n--- a/templates/hooks--update.sample\n+++ b/templates/hooks--update.sample\n@@ -43,10 +43,11 @@ allowdeletetag=$(git config --bool hooks.allowdeletetag)\n\n # check for no description\n projectdesc=$(sed -e '1q' \"$GIT_DIR/description\")\n-if [ -z \"$projectdesc\" -o \"$projectdesc\" = \"Unnamed repository; edit\nthis file to name it for gitweb.\" ]; then\n+case $projectdesc in \"Unnamed repository;\"*|'')\n \techo \"*** Project description file hasn't been set\" >&2\n \texit 1\n-fi\n+\t;;\n+esac\n\n # --- Check types\n # if $newrev is 0000...0000, it's a commit to delete a ref.\ndiff --git a/templates/this--description b/templates/this--description\nindex c6f25e8..914a64e 100644\n--- a/templates/this--description\n+++ b/templates/this--description\n@@ -1 +1 @@\n-Unnamed repository; edit this file to name it for gitweb.\n+Unnamed repository; edit the .git/description file to name it for gitweb.\n-- \n1.6.2.rc1\n"}]}