Debian Bug #743227 - "git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm...

Debian Bug report logs -#743227

"git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware" fails

Debian Bug #743227 - "git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm...
Debian Bug #743227 - "git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm...

Package:git; Maintainer forgit is Gerrit Pape <pape@smarden.org> ; Source forgit issrc:git ( PTS , buildd ,popcon).

Reported by: Jonathan Nieder <jrnieder@gmail.com>

Date: Mon, 31 Mar 2014 17:09:06 UTC

Severity: important

Tags: upstream

Found in version git/1:2.0~next.20140318-1

Reply orsubscribe to this bug.

Toggle useless messages

View this report as anmbox folder, status mbox , maintainer mbox

Report forwardedto debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org> :

Bug#743227 ; Package git . (Mon, 31 Mar 2014 17:09:11 GMT) (full text, mbox ,).

Acknowledgement sentto Jonathan Nieder <jrnieder@gmail.com> :

New Bug report received and forwarded. Copy sent to Gerrit Pape <pape@smarden.org> . (Mon, 31 Mar 2014 17:09:11 GMT) (full text, mbox ,).

received at submit@bugs.debian.org (full text, mbox , reply ):

From: Jonathan Nieder <jrnieder@gmail.com>

To: submit@bugs.debian.org

Subject: "git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware" fails

Date: Mon, 31 Mar 2014 10:05:43 -0700

Package: git
Version: 1:2.0~next.20140318-1
Severity: important
Tags: upstream

  $ git -c transfer.fsckobjects=true clone <a href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware">https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware</a>
  Cloning into 'linux-firmware'...
  remote: Counting objects: 2518, done.
  remote: Compressing objects: 100% (1168/1168), done.
  remote: Total 2518 (delta 1313), reused 2518 (delta 1313)
  error: object 087fbb748f50af6eac2248a445d25d666cc92c78:contains zero-padded file modes
  fatal: Error in object
  fatal: index-pack failed

But:

  $ git clone <a href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware">https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware</a>
[...]
  $ git fsck
  Checking object directories: 100% (256/256), done.
  warning in tree ff42cbe9e62d5d3e383ca621028bd6554597d5f0: contains zero-padded file modes
  warning in tree a1b6cee91e8ec2d6234662bae82e7311ddebcae4: contains zero-padded file modes
[...]

Should it be a warning or an error?

Information forwardedto debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org> :

Bug#743227 ; Package git . (Wed, 03 Feb 2016 10:27:04 GMT) (full text, mbox ,).

Acknowledgement sentto Stéphane Gourichon <stephane.gourichon@gmail.com> :

Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org> . (Wed, 03 Feb 2016 10:27:04 GMT) (full text, mbox ,).

received at 743227@bugs.debian.org (full text, mbox , reply ):

Debian Bug #743227 - "git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm...
Debian Bug #743227 - "git -c transfer.fsckobjects=true clone https://git.kernel.org/pub/scm...

From: Stéphane Gourichon <stephane.gourichon@gmail.com>

To: 743227@bugs.debian.org

Subject: Reproduced today on Debian 7.9

Date: Wed, 3 Feb 2016 11:23:21 +0100

Reproduced today on Debian 7.9 Amd64, git 1:1.9.1-1~bpo70+2,
which means that the repository was not fixed in between.

LC_ALL=C git -c transfer.fsckobjects=true clone 
<a href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware">https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware</a>

Cloning into 'linux-firmware'...
remote: Counting objects: 3966, done.
remote: Total 3966 (delta 0), reused 0 (delta 0)
error: object 087fbb748f50af6eac2248a445d25d666cc92c78:contains 
zero-padded file modes
fatal: Error in object
fatal: index-pack failed

Command exited with non-zero status 128

See also
[git - propagating repo corruption across 
clone](<a href="http://git.661346.n2.nabble.com/propagating-repo-corruption-across-clone-td7580504.html">http://git.661346.n2.nabble.com/propagating-repo-corruption-across-clone-td7580504.html</a>)
[#813157 - git: please default fsckobjects to true in transfer, fetch, 
and receive - Debian Bug report 
logs](<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813157">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813157</a>)

(link reference [git 
integrity - Google Groupes](<a href="https://groups.google.com/forum/#!topic/binary-transparency/f-BI4o8HZW0">https://groups.google.com/forum/#!topic/binary-transparency/f-BI4o8HZW0</a>) 
)

-- 
Stéphane Gourichon

Information forwardedto debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org> :

Bug#743227 ; Package git . (Thu, 04 Feb 2016 05:33:04 GMT) (full text, mbox ,).

Acknowledgement sentto Mike Hommey <mh@glandium.org> :

Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org> . (Thu, 04 Feb 2016 05:33:04 GMT) (full text, mbox ,).

received at 743227@bugs.debian.org (full text, mbox , reply ):

From: Mike Hommey <mh@glandium.org>

To: Stéphane Gourichon <stephane.gourichon@gmail.com>, 743227@bugs.debian.org

Subject: Re: Bug#743227: Reproduced today on Debian 7.9

Date: Thu, 4 Feb 2016 14:28:27 +0900

On Wed, Feb 03, 2016 at 11:23:21AM +0100, Stéphane Gourichon wrote:
> Reproduced today on Debian 7.9 Amd64, git 1:1.9.1-1~bpo70+2,
> which means that the repository was not fixed in between.

Why would it have been "fixed", when that means changing the tree sha1,
and the commit sha1 of the first commit containing this tree, and all
the child commits?

> LC_ALL=C git -c transfer.fsckobjects=true clone
> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware">https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware</a>
> 
> Cloning into 'linux-firmware'...
> remote: Counting objects: 3966, done.
> remote: Total 3966 (delta 0), reused 0 (delta 0)
> error: object 087fbb748f50af6eac2248a445d25d666cc92c78:contains zero-padded
> file modes
> fatal: Error in object
> fatal: index-pack failed

Note that what this error means is that that tree contains modes like
040000 instead of 40000. In practice, it doesn't matter, and the tree
was likely generated with some tool using a dulwich version that left
zero-padding on modes or something like that. Git itself, afaict from
a quick glance at the history of cache-tree.c never created such objects
(it's always used %o for the mode) ; and in fact, it looks like it can't
be dulwich either, which always used %04o (which doesn't pad for 40000).
So it must be some other tool.

Mike

Send a report that this bug log contains spam .

Debian bug tracking system administrator < owner@bugs.debian.org >. Last modified:Tue Mar 20 02:55:16 2018; Machine Name:beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/ .

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.