{"thread":{"id":"17845","subject":"[PATCH] Modify description file to say what this file is","startedAt":"2009-02-17T08:49:48Z","lastAt":"2009-02-17T08:49:48Z","messageCount":1,"participants":["John Tapsell"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"105101","messageId":"43d8ce650902170049u558ff0dasf95ba32087c9f13a@mail.gmail.com","threadId":"17845","inReplyTo":null,"subject":"[PATCH] Modify description file to say what this file is","fromName":"John Tapsell","fromEmail":"johnflux@gmail.com","sentAt":"2009-02-17T08:49:48Z","receivedAt":"2009-02-17T08:49:48Z","isPatch":true,"sender":{"key":"johnflux@gmail.com","avatar":"https://gravatar.com/avatar/25f70d4c0f96396b84a2e34bcd9bdc233462c7b4be29b5fdca8266fc53f30b0c?d=mp&s=160"},"body":"Hi all,\n  I'm new to git development, and want to make a series of commits to\nmake git a bit easier to use.  This is my first patch, to see how it\ngoes :-)\n\n>From 60bf1fd524410479fbc30eb67d32689c1297892e Mon Sep 17 00:00:00 2001\nFrom: John Tapsell <johnflux@gmail.com>\nDate: Tue, 17 Feb 2009 08:26:28 +0000\nSubject: [PATCH] Modify description file to say what this file is\n\nA 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"}]}