From: Jakub Narebski Date: Tue, 12 Feb 2008 08:17:57 GMT Subject: Re: [PATCH] contrib/hooks/post-receive-email: checks for gitweb.description Message-ID: In-Reply-To: <1202786746-12890-1-git-send-email-ribas@c3sl.ufpr.br> Bruno Ribas writes: > -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) + 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 (but this can be fixed when applying). -- Jakub Narebski Poland ShadeHawk on #git