Capistrano & Git : 단일 개정이 필요했습니다
-
06-07-2019 - |
문제
Capistrano와 Git은 내 사이트를 다른 서버로 옮길 때까지 제대로 작동했습니다. SSH 알려진 호스트 관련 문제로 인해 처음 배치하려는 시도가 잘못되었습니다.
이 문제를 해결하더라도 또 다른 문제가 제기되어 더 이상 배포 할 수 없습니다.
* 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
내 git 저장소가 손상되지 않은 것 같습니다. 왜 "단일 개정이 필요한"것을 받는가?
모든 제안은 대단히 감사합니다. 미리 감사드립니다!
업데이트 : 누군가 원격 캐시를 제거 할 것을 제안했습니다. 어떻게해야합니까?
업데이트 : Shared/Cached-Copy를 Shared/Cached-Copy-Old로 바 꾸었습니다. 그런 다음 공유/캐시 카피 빈 폴더를 만들었습니다. 이제 "git 리포지토리가 아님"을 얻습니다.http://pastie.org/672254.txt
해결책
클라이언트와 서버에서 GIT 버전을 확인하십시오. 나는 당신이 그들 중 하나를 1.6으로 업데이트해야한다고 확신합니다.
제휴하지 않습니다 StackOverflow