Re: Git clone error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Denis Bueno
Date: Wednesday, August 1, 2007 - 7:24 am

On 07/31/2007 20:38, "Linus Torvalds" <torvalds@linux-foundation.org> wrote:

Indeed:

    scripts[10] > git fsck --full
    error: b28b949a1a3c8eb37ca6eefd024508fa8b253429: object corrupt or
missing
    missing blob b28b949a1a3c8eb37ca6eefd024508fa8b253429

Fortunately, it's the only one.


    scripts[11] > git log --raw -r --no-abbrev | grep
b28b949a1a3c8eb37ca6eefd024508fa8b253429
    :100755 100755 b28b949a1a3c8eb37ca6eefd024508fa8b253429
9dbd5bb59198ab59e1850f838f2ed27c77364cde M      condor/condor-uninstall.sh
    :000000 100755 0000000000000000000000000000000000000000
b28b949a1a3c8eb37ca6eefd024508fa8b253429 A      condor/condor-uninstall.sh


When you say "re-generate", do you mean `git add <file> ; git commit
<file>`?  Or something a bit more clever?  I suspect you actually meant the
latter, since you suggest recreating it *exactly*.

If I just recreate a version I'm happy with, can I add that to the repo and
go from there?


No such luck, but I'll back up my repos in the future.  Any hint on what
might have caused this kind of corruption?  That repo was created on my
laptop and only edited there; it's not a clone from some other machine.
It's possible that I have Ctrl-C'd some git operation in the past -- could
that have caused it?

Is there anything (e.g. trapping signals if a blob is being written until
it's done, or backing out of the current blob on SIG{INT,HUP}) that could
make this kind of corruption less easy to encounter?  I ask because I have
used VC systems (i.e. CVS, SVN, darcs, and now git) for 4+ years (not long
by any means, but long enough) and the only repository corruption I had ever
encountered was after I went mucking about in a CVS repo's internal
representation -- and I deserved that.


                      Denis
--
"Dealing with failure is easy: Work hard to improve. Success is also easy to
handle: You've solved the wrong problem. Work hard to improve." -- Perlis


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git clone error, Denis Bueno, (Tue Jul 31, 4:45 pm)
Re: Git clone error, Junio C Hamano, (Tue Jul 31, 5:22 pm)
Re: Git clone error, Linus Torvalds, (Tue Jul 31, 7:38 pm)
Re: Git clone error, Denis Bueno, (Wed Aug 1, 7:24 am)
Re: Git clone error, Linus Torvalds, (Wed Aug 1, 9:19 am)
Re: Git clone error, Linus Torvalds, (Wed Aug 1, 9:36 am)
Re: Git clone error, Steffen Prohaska, (Wed Aug 1, 9:37 am)
Re: Git clone error, Johannes Schindelin, (Wed Aug 1, 10:17 am)
Re: Git clone error, Denis Bueno, (Wed Aug 1, 1:22 pm)
Re: Git clone error, Johannes Schindelin, (Wed Aug 1, 2:12 pm)
Re: Git clone error, Denis Bueno, (Thu Aug 2, 8:08 am)
Re: Git clone error, Johannes Schindelin, (Thu Aug 2, 10:08 am)
Re: Git clone error, Linus Torvalds, (Thu Aug 2, 10:40 am)