2013-04-12 4 views
0

나는왜 자식 서브 모듈 경로가 잘못 되었습니까?

ssh://ml-fey/usr/projects/data/nuclear/mc/type1 

이 저장소는 서브 모듈을 가지고에있는 (내가 ml로 참조 할 것) 자식 저장소있다. 이

[submodule "Appendix"] 
    path = Appendix 
    url = /usr/projects/data/nuclear/mc/type1/Appendix 

내가 (내가 XL로 참조 할 것) 새 저장소에 저장소를 복제 할 수 있습니다 것처럼 .gitmodules 파일 내가이 오류를 얻을 서브 모듈을 업데이트하려고하지만 때, 보이는

$ git submodule update 
Cloning into 'Appendix'... 
fatal: '/usr/projects/data/nuclear/mc/Appendix' does not appear to be a git repository 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
Clone of 'ssh://ml-fey/usr/projects/data/nuclear/mc/Appendix' into submodule path 'Appendix' failed 

Appendix 하위 모듈을 검색 할 디렉터리가 최종 type1 디렉터리가 없음을 알 수 있습니다. 자식이 XL에서 서브 모듈을 업데이트 할 수없는 이유는 ssh://ml-fey/usr/projects/data/nuclear/mc/Appendix이 존재하지 않기 때문입니다. type1은 어디로 갔습니까?

[submodule "Appendix"] 
    path = Appendix 
    url = /usr/projects/data/nuclear/mc/type1/Appendix 

답변

6

서브 모듈은 또한 당신의 .git/config 파일에서 호출됩니다 같은

XL 저장소에 대한 .gitmodules 파일이 보인다. 거기에 올바른 URL이 있습니까? 그렇지 않은 경우 git submodule sync을 사용하여 동기화 할 수 있습니다.

+0

이것은 정확히 찾고 있습니다. .gitmodules의 중복은 혼란 스러웠습니다. 고맙습니다. –

관련 문제