From: Jim Meyering <jim@meyering.net>
To: Jonas Fonseca <fonseca@diku.dk>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] cg-commit: prefix the relative path to the message file
Date: Sat, 16 Sep 2006 17:07:06 +0200 [thread overview]
Message-ID: <87fyerq291.fsf@rho.meyering.net> (raw)
In-Reply-To: <20060825000614.GF2817@diku.dk> (Jonas Fonseca's message of "Fri, 25 Aug 2006 02:06:14 +0200")
Jonas Fonseca <fonseca@diku.dk> wrote:
> Makes the -M switch work from a subdirectory.
>
> Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
>
> ---
>
> Jim Meyering <jim@meyering.net> wrote Wed, Aug 23, 2006:
>> Hello,
>
> Hi,
>
>> I discovered that "cg-commit -M MSG-FILE ..." fails when run from
>> a subdirectory, and when MSG-FILE is a relative file name.
>> This is using cogito-0.17.3-2 from Debian/unstable, but the problem
>> remains when using the latest cogito sources, pulled minutes ago.
>
> The attached patch should fix this problem.
>
> ---
>
> cg-commit | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/cg-commit b/cg-commit
> index 0cec58f..5cebd81 100755
> --- a/cg-commit
> +++ b/cg-commit
> @@ -398,7 +398,7 @@ fi
>
> if [ "$msgfile" ]; then
> [ "$written" ] && echo >>"$LOGMSG"
> - cat "$msgfile" >>"$LOGMSG" || exit 1
> + cat "$_git_relpath$msgfile" >>"$LOGMSG" || exit 1
> written=1
> fi
>
>
Thank you!
That solved the problem for me.
prev parent reply other threads:[~2006-09-16 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-23 10:27 "cg-commit -M msg-file ..." fails when not run from top of tree Jim Meyering
2006-08-25 0:06 ` [PATCH] cg-commit: prefix the relative path to the message file Jonas Fonseca
2006-09-16 15:07 ` Jim Meyering [this message]
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=87fyerq291.fsf@rho.meyering.net \
--to=jim@meyering.net \
--cc=fonseca@diku.dk \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).