threads / discuss / 22209

Problem: fatal oops during git fetch

Subject: Problem: fatal oops during git fetch

## tl;dr

2 messages between Jan 13, 2010 and Jan 14, 2010.

replies: 1people: 2as markdown or json

Tilo Schwarz· Jan 13, 2010, 22:03 UTC · lore
Dear List,
git really rocks!

Nevertheless, yesterday I stumbled into a problem, I don't understand. I use git for a software projekt, where up to five different computers are involved. On each computer the same git repository is used, main development happens on one machine, but bug fixes happens also on the other machines. Transfer medium is a USB stick, which I use with 'git fetch', 'git merge' and 'git push'. More than one year nothing strange happened.

Yesterday I tried to fetch bug fixes from one remote machine to the main development machine being on branch 'test' using

git fetch remote/test
I got something like

fatal: oops 'SHA1' Fetch failed

Any ideas what happened here?

I tried various things to fix this without success. I ended up doing 'git cherry-pick' manually on the 5 commits I needed from remote/test, then discarded remote/test and pushed my local 'test' to remote. I remember, that maybe a branch was involved, which was already merged on a remote machine, but not on the main machine. But up to now git always resolved these things automagically.

As a side remark: I wished, the error message would have been a litte bit more detailed. My attempts to make any google sense out of something like 'git fetch fatal oops' failed.

Regards,
     Tilo
Dmitry Potapov· Jan 14, 2010, 05:28 UTC · re: Tilo Schwarz · lore

Re: Problem: fatal oops during git fetch

On Wed, Jan 13, 2010 at 11:03:43PM +0100, Tilo Schwarz wrote:
Show 12 quoted lines
> 
> Yesterday I tried to fetch bug fixes from one remote machine to the main  
> development machine being on branch 'test' using
> 
> git fetch remote/test
> 
> I got something like
> 
> fatal: oops 'SHA1'
> Fetch failed
> 
> Any ideas what happened here?

My guess is that the remote repository is corrupted, and the specified SHA1 object was not found or it was corrupted. Try to run:

  git fsck --full
in the remote repository.
Dmitry

← back to recent threads