Problem: fatal oops during git fetch

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Problem: fatal oops during git fetch

From: Tilo Schwarz <hidden>
Date: 2016-06-15 22:48:00

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

Re: Problem: fatal oops during git fetch

From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:48:01

On Wed, Jan 13, 2010 at 11:03:43PM +0100, Tilo Schwarz wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help