Skip to contentSkip to conversation

Modify description file to say what this file is

PATCH In review John Tapsell 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

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.

---
 templates/hooks--update.sample |    5 +++--
 templates/this--description    |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
templates/hooks--update.sample +3 -2
index 93c6055..f753d28 100755
@@ -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.
templates/this--description +1 -1
index c6f25e8..914a64e 100644
@@ -1 +1 @@
-Unnamed repository; edit this file to name it for gitweb.
+Unnamed repository; edit the .git/description file to name it for gitweb.
Signature · 1 line
1.6.2.rc1
#1 lore raw

Heya,

Quoted 2 lines · John Tapsell

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?

Signature · 3 lines
Cheers,

Sverre Rabbelier
#2 lore raw

2009/2/17 Sverre Rabbelier <[email protected]>:

Quoted 7 lines

Heya,

Quoted 2 lines · John Tapsell

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

Quoted 6 lines

--
Cheers,

Sverre Rabbelier