Error on git fetch FreeCAD github master

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
bernd
Posts: 3924
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Error on git fetch FreeCAD github master

Postby bernd » Wed Mar 29, 2017 7:15 am

I got an error on fetching the latest FreeCAD from github, Anyone the same problem? Anyone an idea how to fix this ?

Code: Select all

$ git fetch sfmaster
error: object file .git/objects/c5/b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f is empty
error: object file .git/objects/c5/b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f is empty
fatal: loose object c5b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f (stored in .git/objects/c5/b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f) is corrupt
fatal: The remote end hung up unexpectedly
wmayer
Site Admin
Posts: 11342
Joined: Thu Feb 19, 2009 10:32 am

Re: Error on git fetch FreeCAD github master

Postby wmayer » Wed Mar 29, 2017 7:26 am

I got an error on fetching the latest FreeCAD from github, Anyone the same problem? Anyone an idea how to fix this ?

At the time when we have hosted the sources on SF I got this error from time to time. The only thing you can do is to wait. Nevertheless, I've just tried it now (i.e. ten minutes after your post) and it works for me flawlessly.
User avatar
kkremitzki
Posts: 359
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Error on git fetch FreeCAD github master

Postby kkremitzki » Wed Mar 29, 2017 7:27 am

You might try to mv .git/objects/c5/b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f /tmp/ since it looks like that's the offending object... hopefully if it isn't there git will just re-fetch it for you and proceed as expected.
User avatar
bernd
Posts: 3924
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Error on git fetch FreeCAD github master

Postby bernd » Wed Mar 29, 2017 11:04 am

Code: Select all

$
$ mv .git/objects/c5/b7c987c43fbc3c7a79df58e7ca7a3cef3edf3f /tmp/
$ git fetch sfmaster
error: refs/remotes/sfmaster/master does not point to a valid object!
error: refs/remotes/sfmaster/master does not point to a valid object!
error: refs/remotes/sfmaster/master does not point to a valid object!
error: refs/remotes/sfmaster/master does not point to a valid object!
remote: Counting objects: 34, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 34 (delta 15), reused 0 (delta 0), pack-reused 0
Entpacke Objekte: 100% (34/34), Fertig.
error: object file .git/objects/7e/9da5e957cc44bb7349a3243acddb2eee2259f2 is empty
fatal: loose object 7e9da5e957cc44bb7349a3243acddb2eee2259f2 (stored in .git/objects/7e/9da5e957cc44bb7349a3243acddb2eee2259f2) is corrupt
error: https://github.com/FreeCAD/FreeCAD_sf_master/ hat nicht alle erforderlichen Objekte gesendet


$
$ git fetch sfmaster
error: object file .git/objects/7e/9da5e957cc44bb7349a3243acddb2eee2259f2 is empty
fatal: loose object 7e9da5e957cc44bb7349a3243acddb2eee2259f2 (stored in .git/objects/7e/9da5e957cc44bb7349a3243acddb2eee2259f2) is corrupt
fatal: The remote end hung up unexpectedly
$


I'm gone wait and try again later ...
User avatar
bernd
Posts: 3924
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Error on git fetch FreeCAD github master

Postby bernd » Fri Mar 31, 2017 8:36 pm

time did not fix it ...

one repo I fixed by the use of a backup

For the other I used ...

Code: Select all

git fsck --full
error: object file .git/objects/0e/eb1d537091db2f514c91cb8f0b7cf99aedbfeb is empty                                                                                                                               
error: object file .git/objects/0e/eb1d537091db2f514c91cb8f0b7cf99aedbfeb is empty
fatal: loose object 0eeb1d537091db2f514c91cb8f0b7cf99aedbfeb (stored in .git/objects/0e/eb1d537091db2f514c91cb8f0b7cf99aedbfeb) is corrupt


git fsck --full
cd .git
find . -type f -empty -delete -print



git pull

rm -f ./objects/8b/141d683ed965f3f064b32164409764cc6a36c3
rm -f ./objects/13/4c09e006516063b624b7b066dc5c263690e5d1
rm -f ./objects/20/d5503d7e9dc48fd2799c358120d6685af63787
rm -f ./objects/48/189e3dc1c6551bfd0b0d5f191098acb64463dc
rm -f ./objects/f1/62e5d66fffb9f8c1cbe7d743c75f3654b7a25f
rm -f ./objects/c3/3f613ed61f7c27030b455c5c09bc6fc1711e12
rm -f ./objects/3d/e050f70a6a63a4f6c16cd1b1ff633a4862c13b
rm -f ./objects/d2/5602634778bfb66a6ac738148166e192f37976
rm -f ./objects/d8/88e710435ccc3718313b83c062948cd5ce2b8c
rm -f ./objects/8a/17381fc14fbabf9c6c344ffa5a8d0ca3739d64
rm -f ./objects/97/5289d94dd2199d79491e6d9d727efe9ef0ae9a
rm -f ./objects/0e/eb1d537091db2f514c91cb8f0b7cf99aedbfeb


git fsck --full

git pull
git fetch allmyremotes