Re: Recovering from repository corruption

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: Git Mailing List <git@...>
Date: Tuesday, June 10, 2008 - 3:38 pm

On Tue, Jun 10, 2008 at 13:55, Jakub Narebski <jnareb@gmail.com> wrote:

Thanks for the help.

My situation was:

    ...---a---*---b---c---d---*---e---...

Following your example, I believe I got this to:

    ...---a---*   b---c---d---*   e---...
           \     /         \     /
            \-X-/           \---/

That is, I replaced the first problematic commit and deleted the
second, since I forgot how I changed 'd' to get that commit.  I put
the following in .git/info/grafts:

    'b' X
    'e' 'd'

(which I gathered from here:
http://thread.gmane.org/gmane.comp.version-control.git/66398/focus=66402.
 I've never use grafts before.  A bit about them should be put in the
manual, if it's not there already. =])

Then I ran:

    git-filter-branch HEAD ^X ^'d'

Now "git log --raw --all" doesn't show any of the problematic SHA-1
hashes anymore!

However:

identity.fb[173] > git fsck --full
    error: 320bd6e82267b71dd2ca7043ea3f61dbbca16109: object corrupt or missing
    error: 4d0be2816d5eea5ae2b40990235e2225c1715927: object corrupt or missing
    missing blob 320bd6e82267b71dd2ca7043ea3f61dbbca16109
    missing blob 4d0be2816d5eea5ae2b40990235e2225c1715927

Shouldn't these be unreferenced now that I've run filter-branch?

-- 
                              Denis
--
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:
Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 1:26 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 3:40 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 3:42 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 1:55 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 3:38 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 3:59 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 4:03 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 4:23 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 4:28 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 5:09 pm)
To graft or not to graft... (Re: Recovering from repository ..., Stephen R. van den Berg, (Wed Jun 11, 7:21 pm)
Re: To graft or not to graft... (Re: Recovering from reposit..., Stephen R. van den Berg, (Thu Jun 12, 8:20 am)
Re: Recovering from repository corruption, Junio C Hamano, (Tue Jun 10, 6:52 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 5:27 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 5:22 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 5:48 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 6:09 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 6:45 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 8:43 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 9:39 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 9:47 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 7:00 pm)
Re: Recovering from repository corruption, Tarmigan, (Tue Jun 10, 6:25 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 6:41 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 4:14 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 4:35 pm)