Hi Helmut,

In April, 2013, Helmut Grohne wrote:

> I verified that the attached patch solves this particular issue.
>
> Helmut

> Description: Avoid reading /tmp/.gitattributes
> Author: Helmut Grohne
> Last-Update: 2013-04-03
> Bug-Debian: http://bugs.debian.org/704005
>
> git-cvsimport invokes git-hash-object in a way that causes it to read
> /tmp/.gitattributes. This patch avoids the behaviour by passing --no-filters 
> to
> git-hash-object. An alternative approach would be to put create a temporary
> directory call git-hash-object on files withing that private directory.
>
> --- git-cvsimport.orig        2013-04-03 09:53:47.000000000 +0200
> +++ git-cvsimport     2013-04-03 09:51:20.000000000 +0200
> @@ -1030,7 +1030,7 @@
>                       my $pid = open(my $F, '-|');
>                       die $! unless defined $pid;
>                       if (!$pid) {
> -                         exec("git", "hash-object", "-w", $tmpname)
> +                         exec("git", "hash-object", "--no-filters", "-w", 
> $tmpname)
>                               or die "Cannot create object: $!\n";
>                       }
>                       my $sha = <$F>;

Sorry for the very long silence.  May I forge your sign-off when passing
this upstream?  See
https://www.kernel.org/pub/software/scm/git/docs/SubmittingPatches.html#sign-off
for more details about what this means.

Sincerely,
Jonathan

Reply via email to