Pergunta

Capistrano e Git funcionou corretamente até que eu mudei o meu site para outro servidor. Minha primeira tentativa de implantar deu errado por causa de uma conhecida-SSH-anfitriões problema relacionado.

Mesmo se eu consegui resolver este problema, outra levantada e eu não posso implantar mais:

  * 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

Meu repositório git parece intacta:? Por que eu recebo "Precisava de uma única revisão"

Qualquer sugestão é muito apreciada. Agradecemos antecipadamente!

UPDATE:? Alguém sugeriu para remover o cache remoto, como posso fazer isso

UPDATE: Eu tenho renomeado shared / cache-cópia em shared / cache-cópia antiga. Então eu criei uma pasta vazia partilhada / cache-copiar. Agora eu recebo "Não é um repositório git": http://pastie.org/672254.txt

Foi útil?

Solução

Verifique as versões git no cliente e servidor; Aposto que você precisa atualizar um deles para 1,6.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top