Git fetch "could not find" "object ... not found" errors for stash

I have a simple backup system in which a git clone created using --bare (may have been --mirror ) ran git fetch every hour. The idea is that if something happens to my working copies, I have a backup of my work in the clone.

This system works fine, but I get an error when starting git fetch :

 $ git fetch remote: Total 0 (delta 0), reused 0 (delta 0) error: unable to find 2a8c978c41c362c3f0c42775c9124780a0e71e08 fatal: object 2a8c978c41c362c3f0c42775c9124780a0e71e08 not found 

When I look at the source repository for an object, this is a splash screen:

 $ git show 2a8c978c41 commit 2a8c978c41c362c3f0c42775c9124780a0e71e08 Merge: 808f6e4 ddc28da Author: Russell Silva < russell.silva@blahblah.com > Date: Wed Feb 29 10:19:26 2012 WIP on experimental: 808f6e4 blah blah blah 

Sampling seems to be mostly successful; git log <branch> displays updated branches. But the mistakes are annoying. How can I get rid of them? How to keep them from repeating?

Note that this question is different from this when someone really wants to receive an order. I don't care if my git fetch commands take blanks; it is normal if they do not.

EDIT: requested full git fetch --verbose output git fetch --verbose :

 $ git fetch --verbose remote: Total 0 (delta 0), reused 0 (delta 0) From /home/russell/work/russells-project = [up to date] some-branch -> some-branch error: unable to find 2a8c978c41c362c3f0c42775c9124780a0e71e08 fatal: object 2a8c978c41c362c3f0c42775c9124780a0e71e08 not found 

I changed the names in the output to hide personal information and eliminated everything except one of the lines [up to the date] - there are dozens of them, one for each branch in the repository.

In addition, my remote computer is in the local file system; it is not accessible over the network.

 $ git remote --verbose origin /home/russell/work/russells-project (fetch) origin /home/russell/work/russells-project (push) 
+6
source share
1 answer

Try using some 'cache_fu' http://github.com/defunkt/cache_fu.git

0
source

Source: https://habr.com/ru/post/912323/


All Articles