Pregunta

Capistrano y Git funcionaron correctamente hasta que mudé mi sitio a otro servidor. Mi primer intento de implementación salió mal debido a un problema relacionado con los hosts conocidos de SSH.

Incluso si logré resolver este problema, surgió otro y ya no puedo implementarlo:

  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote collimarco@mywebsite.com:/home/collimarco/git/foto-fiori.git master"
  * executing "if [ -d /home/collimarco/mywebsite.com/shared/cached-copy ]; then cd /home/collimarco/mywebsite.com/shared/cached-copy && git fetch  origin && git reset  --hard 7de27a6a1de7a94508f943596413e5e0f217f57e; else git clone  --depth 1 collimarco@mywebsite.com:/home/collimarco/git/foto-fiori.git /home/collimarco/mywebsite.com/shared/cached-copy && cd /home/collimarco/mywebsite.com/shared/cached-copy && git checkout  -b deploy 7de27a6a1de7a94508f943596413e5e0f217f57e; fi"
    servers: ["mywebsite.com"]
    [mywebsite.com] executing command
 ** [mywebsite.com :: out] * refusing to create funny ref 'remotes/origin/*' locally
 ** [mywebsite.com :: out] collimarco@mywebsite.com's password:
Password: 
 ** [mywebsite.com :: out]
 ** [mywebsite.com :: out] fatal: Needed a single revision
    command finished
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/collimarco/mywebsite.com/releases/20091027191027; true"
    servers: ["mywebsite.com"]
    [mywebsite.com] executing command
    command finished
failed: "sh -c \"if [ -d /home/collimarco/mywebsite.com/shared/cached-copy ]; then cd /home/collimarco/mywebsite.com/shared/cached-copy && git fetch  origin && git reset  --hard 7de27a6a1de7a94508f943596413e5e0f217f57e; else git clone  --depth 1 collimarco@mywebsite.com:/home/collimarco/git/foto-fiori.git /home/collimarco/mywebsite.com/shared/cached-copy && cd /home/collimarco/mywebsite.com/shared/cached-copy && git checkout  -b deploy 7de27a6a1de7a94508f943596413e5e0f217f57e; fi\"" on mywebsite.com

Mi repositorio git parece intacto: ¿por qué recibo " Necesito una revisión única " ;?

Cualquier sugerencia es muy apreciada. Gracias de antemano!

ACTUALIZACIÓN: alguien sugirió eliminar el caché remoto, ¿cómo hago eso?

ACTUALIZACIÓN: He cambiado el nombre de copia compartida / en caché a copia compartida / en caché. Luego he creado una carpeta vacía de copia compartida / en caché. Ahora obtengo "No es un repositorio git": http://pastie.org/672254.txt

¿Fue útil?

Solución

Verifique sus versiones de git en el cliente y el servidor; Apuesto a que necesitas actualizar uno de ellos a 1.6.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top