All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] contrib/hooks/post-receive-email: checks for gitweb.description
@ 2008-02-11 20:02 Bruno Ribas
  2008-02-11 21:20 ` Jakub Narebski
  0 siblings, 1 reply; 8+ messages in thread
From: Bruno Ribas @ 2008-02-11 20:02 UTC (permalink / raw)
  To: git; +Cc: gitster, Bruno Ribas


Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
---
 contrib/hooks/post-receive-email |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 77c88eb..bdd21fa 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -614,7 +614,11 @@ if [ -z "$GIT_DIR" ]; then
 	exit 1
 fi
 
-projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+if [ -f "$GIT_DIR/description" ]; then
+	projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+else
+	projectdesc=$(git-config gitweb.description)
+fi
 # Check if the description is unchanged from it's default, and shorten it to
 # a more manageable length if it is
 if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null
-- 
1.5.4.24.gce08d

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] contrib/hooks/post-receive-email:  checks for gitweb.description
@ 2008-02-12  3:25 Bruno Ribas
  2008-02-12  8:17 ` Jakub Narebski
  0 siblings, 1 reply; 8+ messages in thread
From: Bruno Ribas @ 2008-02-12  3:25 UTC (permalink / raw)
  To: git; +Cc: gitster, Bruno Ribas

Check repository configuration gitweb.description for project description,
if $GIT_DIR/description does not exist

Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
---
 contrib/hooks/post-receive-email |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 77c88eb..bdd21fa 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -614,7 +614,11 @@ if [ -z "$GIT_DIR" ]; then
 	exit 1
 fi
 
-projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+if [ -f "$GIT_DIR/description" ]; then
+	projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+else
+	projectdesc=$(git-config gitweb.description)
+fi
 # Check if the description is unchanged from it's default, and shorten it to
 # a more manageable length if it is
 if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null
-- 
1.5.4.24.gce08d

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-18  6:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11 20:02 [PATCH] contrib/hooks/post-receive-email: checks for gitweb.description Bruno Ribas
2008-02-11 21:20 ` Jakub Narebski
2008-02-11 21:49   ` BRUNO CESAR RIBAS
  -- strict thread matches above, loose matches on Subject: below --
2008-02-12  3:25 Bruno Ribas
2008-02-12  8:17 ` Jakub Narebski
2008-02-13  0:24   ` Bruno Cesar Ribas
2008-02-18  3:46     ` Bruno Cesar Ribas
2008-02-18  6:03       ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.