Note that there are some explanatory texts on larger screens.

plurals
  1. POCapistrano & Git: Needed a single revision
    primarykey
    data
    text
    <p>Capistrano and Git worked properly till I moved my site to another server. My first attempt to deploy went wrong because of an SSH-known-hosts related problem.</p> <p>Even if I managed to solve this problem, another one raised and I can't deploy any more:</p> <pre> * 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 </pre> <p>My git repository seems intact: why do I get "Needed a single revision"?</p> <p>Any suggestion is greatly appreciated. Thanks in advance!</p> <p>UPDATE: someone suggested to remove the remote cache, how do I do that?</p> <p>UPDATE: I have renamed shared/cached-copy into shared/cached-copy-old. Then I have created a shared/cached-copy empty folder. Now I get "Not a git repository": <a href="http://pastie.org/672254.txt" rel="nofollow noreferrer">http://pastie.org/672254.txt</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload