All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Bruno Ribas <ribas@c3sl.ufpr.br>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] contrib/hooks/post-receive-email:  checks for gitweb.description
Date: Tue, 12 Feb 2008 00:17:57 -0800 (PST)	[thread overview]
Message-ID: <m3wspad1xd.fsf@localhost.localdomain> (raw)
In-Reply-To: <1202786746-12890-1-git-send-email-ribas@c3sl.ufpr.br>

Bruno Ribas <ribas@c3sl.ufpr.br> 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

  reply	other threads:[~2008-02-12  8:18 UTC|newest]

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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3wspad1xd.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=ribas@c3sl.ufpr.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.