2010-04-13 6 views
2

git 리포지토리 복제시 매우 이해할 수없는 오류 메시지가 나타납니다."인덱스 팩 실패"

$ git clone [email protected]:group07 
Initialized empty Git repository in /cygdrive/C/Users/Martin Bigler/p2/group07/. 
remote: Counting objects: 2269, done. 
remote: Compressing objects: 100% (1936/1936), done. 
git: 'index-pack' is not a git-command. See 'git --help'. 

이 동작이 발생할 수있는 이유는 무엇입니까?

답변

1

ticket 269과 비슷합니까?

git index-pack을하지가 내장 git.exe에, 그래서 git.exe (일반적으로 "/libexec/git-core/"이어야 함) $GIT_EXEC_PATH에서 git-index-pack.exe을 찾을 필요가있다. "/libexec/git-core/git-index-pack.exe"이 있습니까?

그렇다면 오류가 발생하는 서버가 아니기 때문에 로컬에 설치된 git이 밀어 넣기를 수행하는 것이 아닙니다.

당신은 대화 형으로 로그온을 시도하고 인덱스 팩을 확인할 수 있습니다 사용할 수 있습니다 :

$ ssh git#***[email protected]***.com 
Enter passphrase for key '/c/Users/***/.ssh/id_rsa': 
Last login: Tue Feb 9 13:48:32 2010 from *** 
-bash-3.2$ git version 
git version 1.6.1 
-bash-3.2$ git-index-pack 
usage: git index-pack [-v] [-o <index-file>] [{ ---keep | --keep=<msg> }] [--strict] 
{ <pack-file> | --stdin [--fix-thin] [<pack-file>] } 

은 그 테스트는 다음과 같은 대답을하라는 메시지 :

귀하의 git-index-pack 대화 형으로 로그인 할 때 발견된다.
하지만 대화 형으로 로그인하지 않은 경우에는 분명히 아닙니다. 당신이 $HOME/.profile 또는 $HOME/.bash_profile에 적절하게 PATH을 조정하지만, 제안
하지 HOME/.bashrc

그리고 결론에서 :

내 솔루션은 다음과 같습니다

ssh [email protected] 
cp .bash_profile .bashrc