What does this git error mean?

3

I am migrating a server git repository. I'm pulling out of my VPS and moving on to Bitbucket.

I took all the branches of the VPS and successfully climbed to the service mentioned. I even added a deployment key so that the staging server can update the source code there. Nothing wrong has happened and I can work quietly. The problem happens at the time of deployment.

My capistrano file looks like this:

set :deploy_to, "/var/www/apps/#{fetch(:application)}"
set :branch, 'upgrade_infra'
set :rails_env, 'production'

When I give one

cap application deploy 

I have this return at the moment Capistrano tries to pull (or whatever he does to recover the source code):

SSHKit :: Runner :: ExecuteError: Exception while executing as [email protected]: git exit status: 2
git stdout: fatal: Not a valid object name
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
git stderr: Nothing written

What's driving me crazy is this "not a valid object name". Everything is ok in the repository. All branches there (including that). All perfectly synchronized with my local environment.

The strange thing is that if I change the branch name in capistrano to master , it works perfectly.

I searched a lot and everything indicates that the problem is due to the branch not existing on the remote server or not having any commit, which is not my case, since I went up there very old branches with thousands of commits. p>

Would someone please help me?

    
asked by anonymous 12.08.2015 / 20:24

0 answers