# [PATCH 1/2] Modify description file to say what this file is

3 messages from 2009-02-17 to 2009-02-17. Participants: John Tapsell, Sverre Rabbelier.
Thread: https://gitlist.dev/t/17854

## John Tapsell, 2009-02-17 10:44

Subject: [PATCH 1/2] Modify description file to say what this file is
Message-ID: <200902171044.59974.johnflux@gmail.com>
URL: https://gitlist.dev/e/200902171044.59974.johnflux%40gmail.com

```
A lot of people see this message for the first time on the gitweb
interface, where there is no clue as to what 'this file' means.

Signed-off-by: John Tapsell <johnflux@gmail.com>
---
 templates/hooks--update.sample |    5 +++--
 templates/this--description    |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/templates/hooks--update.sample b/templates/hooks--update.sample
index 93c6055..f753d28 100755
--- a/templates/hooks--update.sample
+++ b/templates/hooks--update.sample
@@ -43,10 +43,11 @@ allowdeletetag=$(git config --bool hooks.allowdeletetag)
 
 # check for no description
 projectdesc=$(sed -e '1q' "$GIT_DIR/description")
-if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb." ]; then
+case $projectdesc in "Unnamed repository;"*|'')
 	echo "*** Project description file hasn't been set" >&2
 	exit 1
-fi
+	;;
+esac
 
 # --- Check types
 # if $newrev is 0000...0000, it's a commit to delete a ref.
diff --git a/templates/this--description b/templates/this--description
index c6f25e8..914a64e 100644
--- a/templates/this--description
+++ b/templates/this--description
@@ -1 +1 @@
-Unnamed repository; edit this file to name it for gitweb.
+Unnamed repository; edit the .git/description file to name it for gitweb.
-- 
1.6.2.rc1

```

## Sverre Rabbelier, 2009-02-17 11:37

Subject: Re: [PATCH 1/2] Modify description file to say what this file is
Message-ID: <bd6139dc0902170337o6cdc084cje313f726584fe1a7@mail.gmail.com>
URL: https://gitlist.dev/e/bd6139dc0902170337o6cdc084cje313f726584fe1a7%40mail.gmail.com
In-Reply-To: <200902171044.59974.johnflux@gmail.com>

```
Heya,

On Tue, Feb 17, 2009 at 11:44, John Tapsell <johnflux@gmail.com> wrote:
> A lot of people see this message for the first time on the gitweb
> interface, where there is no clue as to what 'this file' means.

It seems you somehow managed to send the exact same message 4 times, what gives?

-- 
Cheers,

Sverre Rabbelier

```

## John Tapsell, 2009-02-17 11:59

Subject: Re: [PATCH 1/2] Modify description file to say what this file is
Message-ID: <43d8ce650902170359l2c3fa87at3efdf91f12a8812b@mail.gmail.com>
URL: https://gitlist.dev/e/43d8ce650902170359l2c3fa87at3efdf91f12a8812b%40mail.gmail.com
In-Reply-To: <bd6139dc0902170337o6cdc084cje313f726584fe1a7@mail.gmail.com>

```
2009/2/17 Sverre Rabbelier <srabbelier@gmail.com>:
> Heya,
>
> On Tue, Feb 17, 2009 at 11:44, John Tapsell <johnflux@gmail.com> wrote:
>> A lot of people see this message for the first time on the gitweb
>> interface, where there is no clue as to what 'this file' means.
>
> It seems you somehow managed to send the exact same message 4 times, what gives?

I'm really sorry.  Gmail kept mangling it, then my email client said
it wasn't sending..  bah.  I've got it sorted it out now.

John

>
> --
> Cheers,
>
> Sverre Rabbelier
>

```
