git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: My git repo is broken, how to fix it ?
@ 2021-06-06 17:27 B
  0 siblings, 0 replies; 30+ messages in thread
From: B @ 2021-06-06 17:27 UTC (permalink / raw)
  To: torvalds; +Cc: git, litvinov2004



^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: My git repo is broken, how to fix it ?
@ 2023-05-29 18:57 ross thomas
  0 siblings, 0 replies; 30+ messages in thread
From: ross thomas @ 2023-05-29 18:57 UTC (permalink / raw)
  To: torvalds; +Cc: git, litvinov2004

I’m main rt/td

Sent from my iPhone

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: My git repo is broken, how to fix it ?
@ 2021-12-25  8:30 Joseph Mitchell
  2021-12-26  0:48 ` Lemuria
  0 siblings, 1 reply; 30+ messages in thread
From: Joseph Mitchell @ 2021-12-25  8:30 UTC (permalink / raw)
  To: torvalds; +Cc: git, litvinov2004



Sent from my iPhone

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: My git repo is broken, how to fix it ?
@ 2021-06-06 17:28 B
  0 siblings, 0 replies; 30+ messages in thread
From: B @ 2021-06-06 17:28 UTC (permalink / raw)
  To: torvalds; +Cc: git, litvinov2004



^ permalink raw reply	[flat|nested] 30+ messages in thread
* My git repo is broken, how to fix it ?
@ 2007-02-28  4:36 Alexander Litvinov
  2007-02-28  4:57 ` Linus Torvalds
       [not found] ` <Pine.LNX.4.64.0703200832150.6730@woody.linux-foundation.org>
  0 siblings, 2 replies; 30+ messages in thread
From: Alexander Litvinov @ 2007-02-28  4:36 UTC (permalink / raw)
  To: git

Hello,

I use manualy compiled git under cygwin. Some time ago I have imported project 
from CVS and start to us it under git. To emulate 'separate remotes' schema 
for branches from CVS I clone imported git repo and work with it. From time 
to time I incrementaly update imported repo from cvs and sometimes use 
git-cvsexportcommit (from work repo) to export my changes and then get them 
using git-cvsimport.

Some times ago I descide to run fsck and found that by working repo is broken, 
while imported repo is correct. Is there way to fix it ? 

>git version
git version 1.5.0.GIT
(It was actualy compiled from e86d552 commit)
> git fsck
> git fsck --full
error: packed 7f5fed8131fb32972c602dede29b9257a053ba67 
from .git/objects/pack/pack-c4554978bbe079c9a43d6a13546a2fa314fe0884.pack is 
corrupt
sha1 mismatch 7f5fed8131fb32972c602dede29b9257a053ba67

(This is a blob, git cat-file blob 7f5fed813 shows me my c++ header file that 
is partialy broken with ^@ symbols)

The repo I get using git-cvsimport is correct and does not contains that blob. 
I also tried git-log -p for all by branches to force git to show me what is 
the commit was broken but git-log finished without errors.

By the way, several times I interrupt git's commands like commit and pull 
using Ctrl-C.

I tried to unpack all objects:
> git-unpack-objects -r 
< .git/objects/pack/pack-c4554978bbe079c9a43d6a13546a2fa314fe0884.pack; echo 
$?
Unpacking 12868 objects
 100% (12868/12868) done
0

No erorts here. But fsck find that broken blob:
> git fsck 
dangling blob beb992198d4d8813ea51fd1cbbf38313ef490c22

git-cat-file shows me this this is a broken object with correct sha1 sum.


As a cunclusion: my repo has broken file and I don't see there is the brakage. 
Can I reconstruct file by sha1 sum :-) or can I do something to stop fsck 
warn me ?

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2023-05-29 18:57 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-06 17:27 My git repo is broken, how to fix it ? B
  -- strict thread matches above, loose matches on Subject: below --
2023-05-29 18:57 ross thomas
2021-12-25  8:30 Joseph Mitchell
2021-12-26  0:48 ` Lemuria
2021-06-06 17:28 B
2007-02-28  4:36 Alexander Litvinov
2007-02-28  4:57 ` Linus Torvalds
2007-02-28 11:54   ` Alexander Litvinov
2007-02-28 16:19     ` Linus Torvalds
2007-02-28 19:12       ` Alex Riesen
2007-03-19 13:32       ` Alexander Litvinov
2007-03-19 15:20         ` Linus Torvalds
     [not found]           ` <200703201013.39169.litvinov2004@gmail.com>
2007-03-20  5:34             ` Linus Torvalds
2007-03-20  6:55               ` Alexander Litvinov
2007-03-20  7:42               ` Junio C Hamano
2007-03-20 15:23                 ` Nicolas Pitre
     [not found] ` <Pine.LNX.4.64.0703200832150.6730@woody.linux-foundation.org>
     [not found]   ` <Pine.LNX.4.64.0703200836490.6730@woody.linux-foundation.org>
     [not found]     ` <200703210956.50018.litvinov2004@gmail.com>
2007-03-22 15:58       ` Linus Torvalds
2007-03-22 16:34         ` Nicolas Pitre
     [not found]       ` <200703211024.04740.litvinov2004@gmail.com>
2007-03-22 16:17         ` Linus Torvalds
2007-03-22 16:29           ` Linus Torvalds
2007-03-22 16:48             ` Linus Torvalds
2007-03-22 17:01               ` Nicolas Pitre
2007-03-22 17:10                 ` Linus Torvalds
2007-03-22 17:28                   ` Nicolas Pitre
2007-03-22 22:13                   ` Jeff King
2007-03-23  0:25                     ` Linus Torvalds
2007-03-23  0:42                       ` Bill Lear
2007-03-23  0:51                       ` Jeff King
2007-03-23  3:40               ` Alexander Litvinov
2007-03-22 17:12             ` Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).