Failed to execute git status when updating Doctrine

Asked

Viewed 42 times

0

I’m servicing a system, and I need to upload some changes to the production server. Some of these changes involve mapping and adding new entities to the bank.

The problem: the file . /vendor/bin/Doctrine-module is not on the server.

What I have done so far: I climbed up my Composer.lock and gave an install.

The following error occurs when trying to update Doctrine

 [RuntimeException]                                             
  Failed to execute git status --porcelain --untracked-files=no  
  error: bad index file sha1 signature                           
  fatal: index file corrupt    

I’ve tried user:

rm -f .git/index 
git reset

But the error persists while running the command again. Someone could help me??

1 answer

0


If you have removed the file .git/index of the main project, it is probably the index of some of the dependencies that is giving problems.

Delete the folder vendor and install the project dependencies again with composer install.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.