From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: "H.Merijn Brand" <h.m.brand@xs4all.nl>,
Ben Walton <bdwalton@gmail.com>,
git@vger.kernel.org
Subject: Re: Git.pm with recent File::Temp fail
Date: Sun, 28 Apr 2013 20:59:16 -0700 [thread overview]
Message-ID: <7vr4hung17.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20130429021651.GA2751@sigill.intra.peff.net> (Jeff King's message of "Sun, 28 Apr 2013 22:16:51 -0400")
Jeff King <peff@peff.net> writes:
> On Sun, Apr 28, 2013 at 11:09:33AM +0200, H.Merijn Brand wrote:
>
>> Still failing in 1.8.2.2
>>
>> Short fix:
>> --8<---
>> diff --git a/perl/Git.pm b/perl/Git.pm
>> index dc48159..7a252ef 100644
>> --- a/perl/Git.pm
>> +++ b/perl/Git.pm
>> @@ -1265,7 +1265,7 @@ sub _temp_cache {
>> $tmpdir = $self->repo_path();
>> }
>>
>> - ($$temp_fd, $fname) = File::Temp->tempfile(
>> + ($$temp_fd, $fname) = File::Temp::tempfile(
>> 'Git_XXXXXX', UNLINK => 1, DIR => $tmpdir,
>> ) or throw Error::Simple("couldn't open new temp file");
>
> I think this fix is the right thing. Your patch probably didn't get
> applied because it did not follow the guidelines in SubmittingPatches.
It was more like "It managed to miss people's attention because the
subject didn't say [PATCH]", but yes you are right that the change
the patch text itself shows looks reasonable and that I cannot apply
a patch that is not signed off (and worse yet in multipart/mixed).
> ...
> So I think the right commit message is something like:
>
> We call File::Temp's "tempfile" function as a class method, but it was
> never designed to be called this way. Older versions seemed to
> tolerate it, but as of File::Temp 0.23, it blows up like this:
>
> $ git svn fetch
> 'tempfile' can't be called as a method at .../Git.pm line 1117.
>
> Fix it by calling it as a regular function, just inside the File::Temp
> namespace.
>
> -Peff
Thanks.
next prev parent reply other threads:[~2013-04-29 3:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-22 19:57 Git.pm with recent File::Temp fail H.Merijn Brand
[not found] ` <CAP30j14=_U8iEZAodnfACnBHgF0+j0_OK7n7PvsUnwSDj_Y40A@mail.gmail.com>
2013-04-08 6:43 ` H.Merijn Brand
2013-04-28 9:09 ` H.Merijn Brand
2013-04-29 2:16 ` Jeff King
2013-04-29 3:59 ` Junio C Hamano [this message]
2013-04-29 5:46 ` H.Merijn Brand
2013-04-29 5:53 ` Junio C Hamano
2013-04-29 8:18 ` Junio C Hamano
2013-04-29 8:32 ` H.Merijn Brand
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=7vr4hung17.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bdwalton@gmail.com \
--cc=git@vger.kernel.org \
--cc=h.m.brand@xs4all.nl \
--cc=peff@peff.net \
/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).