Skip to content

Commit 28001d0

Browse files
johnfluxgitster
authored andcommitted
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. Signed-off-by: John Tapsell <johnflux@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9f199b1 commit 28001d0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

templates/hooks--update.sample

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ allowdeletetag=$(git config --bool hooks.allowdeletetag)
4343

4444
# check for no description
4545
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
46-
if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb." ]; then
46+
case "$projectdesc" in
47+
"Unnamed repository"* | "")
4748
echo "*** Project description file hasn't been set" >&2
4849
exit 1
49-
fi
50+
;;
51+
esac
5052

5153
# --- Check types
5254
# if $newrev is 0000...0000, it's a commit to delete a ref.

templates/this--description

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Unnamed repository; edit this file to name it for gitweb.
1+
Unnamed repository; edit this file 'description' to name the repository.

0 commit comments

Comments
 (0)