El deployment de Capistrano falla – fatal: se necesitaba una sola revisión

Intento implementar mi aplicación en VPS a través de 'bundle exec cap production deploy', pero aparece un error

Tasks: TOP => git:create_release => git:update (See full trace by running task with --trace) The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing as [email protected] : cd /var/www/repo && git rev-parse --short HEAD exit status: 128 cd /var/www/repo && git rev-parse --short HEAD stdout: Nothing written cd /var/www/repo && git rev-parse --short HEAD stderr: fatal: Needed a single revision 

Mi repository remoto de git contiene solo un branch-master, y no tengo idea de qué causa este error 🙁

la versión remota de Git es 1.9.1

git local es 1.9.5.msysgit.1

deploy.rb:

 # config valid only for Capistrano 3.1 lock '3.1.0' set :application, 'stroysauna_pg' set :repo_url, '[email protected]:IvanSelivanov/stroysauna_pg.git' namespace :deploy do desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do # Your restart mechanism here, for example: execute :touch, release_path.join('tmp/restart.txt') end end after :publishing, :restart after :finishing, 'deploy:cleanup' after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do # Here we can do anything such as: # within release_path do # execute :rake, 'cache:clear' # end end end end 

.git\config :

 [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [gui] wmstate = normal geometry = 1187x555+90+96 239 251 [branch "lk"] [branch "master"] [remote "origin"] url = [email protected]:IvanSelivanov/stroysauna_pg.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master 

creó una aplicación vacía desde cero; todavía no se implementa, el mismo error https://github.com/IvanSelivanov/vps

No es exactamente una solución, pero funciona. Reconstruyó el server desde cero, pero usó rbenv en lugar de rvm. Ahora se implementa sin errores.