Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upgit clone ends ... contains zero-padded file modes #1404
Comments
This comment has been minimized.
This comment has been minimized.
|
Setting in your .gitconfig is a workaround. Clone works now. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for sharing your workaround. Your issue doesn't seem to be related to this project, which is called "hub" and is a command-line wrapper around git. You seem to be using git directly. |
mislav
closed this
Feb 15, 2017
This comment has been minimized.
This comment has been minimized.
|
Yes i use vanilla git ... to clone the hub repo and this cloning fails so i suspect an inconsistency in the hub repo, not a problem with the hub application or code. My idea is to thoroughly check the hub repo
|
This comment has been minimized.
This comment has been minimized.
|
Cloning with --depth 1 works
|
This comment has been minimized.
This comment has been minimized.
|
Ah, my apologies: I wasn't reading closely and didn't realize that you were trying to clone this very repository and had problems with it. I just ran health checks on this repository and didn't find any problems. I also tried cloning it from a Linux machine, but there was no problems. Is your problem reproducible every time? Do you have any other systems that this happens on, or is localized to just your version of Arch linux + that version of git? |
mislav
reopened this
Feb 16, 2017
This comment has been minimized.
This comment has been minimized.
|
Is it an option for you to turn this warning off with |
This comment has been minimized.
This comment has been minimized.
kgrz
commented
Mar 30, 2017
•
|
I'm seeing this error on MacOS Sierra. It happens with the same commit ID and I checked it multiple times. > hub clone git@github.com:github/hub.git
Cloning into 'hub'...
remote: Counting objects: 13748, done.
error: object 9ef2af57366f63deb751b92a8ca630fe598b10f0: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failedAdding the following doesn't stop avoid the error (which is not
|
This comment has been minimized.
This comment has been minimized.
jasonk
commented
Apr 20, 2017
|
I can confirm this is a problem with the repo, I tried both on a Linux machine (with git 2.7.4) and on OS X (with git 2.12.2). To reproduce:
The result is:
Unfortunately, the only way to really fix the problem appears to be to export the repo and then re-import it, which would rewrite history. If you don't want to rewrite history then it should be pointed out that anyone that has globally turned on fsckObjects should know how to turn it off temporarily if they need to clone a repo that has problems that fsckObjects will fail on. In this case the answer is:
|
mislav
added
the
docs
label
Jun 26, 2017
This comment has been minimized.
This comment has been minimized.
filippog
commented
Aug 16, 2017
|
FWIW, if you are cloning under Debian you'll need to pass all three fsckobjects=false while cloning (see also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813157), namely |
This comment has been minimized.
This comment has been minimized.
pushcx
commented
Oct 3, 2017
|
Still considered corrupt by git 2.14.2:
|
This comment has been minimized.
This comment has been minimized.
philips
commented
Sep 19, 2018
|
This is still an issue. |
jhford
added a commit
to jhford/hub
that referenced
this issue
Nov 1, 2018
jhford
added a commit
to jhford/hub
that referenced
this issue
Nov 1, 2018
jhford
referenced this issue
Nov 1, 2018
Closed
Provide correct instructions to build github/hub #1929
mislav
added a commit
that referenced
this issue
Nov 2, 2018
This comment has been minimized.
This comment has been minimized.
jpo-joyent
commented
Feb 11, 2019
+1 This also breaks |
This comment has been minimized.
This comment has been minimized.
npostavs
commented
Apr 8, 2019
From what I can tell, this needs git version 2.19.0+, and an additional config item:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-fsckltmsg-idgt:
|
triklsbg commentedFeb 11, 2017
[tom1@achse /data/tomsData/github]$ git clone https://github.com/github/hub.git
Klone nach 'hub' ...
remote: Counting objects: 13716, done.
remote: Compressing objects: 100% (53/53), done.
error: object 9ef2af57366f63deb751b92a8ca630fe598b10f0: zeroPaddedFilemode: contains zero-padded file modes
fatal: Fehler in Objekt
fatal: index-pack fehlgeschlagen
[tom1@achse /data/tomsData/github]$ git --version
git version 2.11.1
[tom1@achse /data/tomsData/github]$ uname -a
Linux achse 4.9.8-1-ARCH #1 SMP PREEMPT Mon Feb 6 12:59:40 CET 2017 x86_64 GNU/Linux
no subdir hub was created