Unexpectedly failed git fetch from source

In my repository, I remotely track our main repository, which is bare. I have never had problems extracting from the past past.

However, when I tried to get the remote update this morning, I received the following error:

fatal: '/users/integrator/project' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Could not fetch origin

I have not changed anything, and the repository is certainly still there. There are a few people who have access to an integrator account, but usually they merge and pull. We do not allow access to this repository.

My question is: what could happen? Or, is there any diagnosis I can use to find out what is going wrong? I am not the only user who suddenly encountered this problem, so the problem is more likely on the origin side.

Update:

When I try to clone a bare repository, I get the following error:

git clone /users/integrator/project
Cloning into project...
fatal: failed to open '/users/integrator/project/.git/objects': No such file or directory

Here is the list of contents of / users / integrator / project:

config
HEAD
packed-refs
ssh_helper
bin/
hooks/
info/
  exclude
objects/
  [lots of folders with two character long names]
  info/
  pack/
refs/
  heads/
  tags/
+3
source share
1 answer

I would see what is in the directory /users/integrator/projecton your server. Does this look like a git repository? It must have a objectsdirectory refsand a HEADfile in the directory in order to be a proper git repository. Does it contain all this data?

Another thing to check is to log in directly to the server and clone from the repository.

, , , , , /users/integrator/project, , , .

:

, , .git . ls -a, . , git .git , . , .git , git .

.git, - .git project.git ; git , , , .git , .

+5

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


All Articles