2009-01-31 9 views
4

허드슨을위한 힘내 플러그인을 사용할 때 내 온라인 자식 저장소 (git : //github.com/ithena/orm2dsl.git)에서 최신 소스를 가져 오는 작업은 항상 실패합니다.허드슨 체크 아웃 문제에 대한 힘내 플러그인

git plugin은 먼저 git fetch을 실행합니다. 그런 다음 아래 그림과 같이 실패하면 git checkout -f origin/을 실행하려고합니다. 이 문제가 my git repository일까요? 아니면 이해가 안되는 checkout 명령입니까?

망할 놈의 명령 whithout 작업 구성에 지점 세트 :

git checkout -f origin/ 
git checkout: updating paths is incompatible with switching branches/forcing 
Did you intend to checkout 'origin/' which can not be resolved as commit? 

작업 구성에서 마스터로 설정 분기 망할 놈의 명령 :

git checkout -f origin/master 
git checkout: updating paths is incompatible with switching branches/forcing 
Did you intend to checkout 'origin/master' which can not be resolved as commit? 

허드슨 콘솔 출력 :

started 
Checkout 
[workspace] $ git fetch 
Checking out origin/ 
[workspace] $ git checkout -f origin/ 
git checkout: updating paths is incompatible with switching branches/forcing 
Did you intend to checkout 'origin/' which can not be resolved as commit? 
FATAL: Error checking out origin/ 
java.lang.RuntimeException: Error checking out origin/ 
    at hudson.plugins.git.GitAPI.launch(GitAPI.java:101) 
    at hudson.plugins.git.GitAPI.checkout(GitAPI.java:94) 
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:90) 
    at hudson.model.AbstractProject.checkout(AbstractProject.java:693) 
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:266) 
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239) 
    at hudson.model.Run.run(Run.java:842) 
    at hudson.model.Build.run(Build.java:88) 
    at hudson.model.ResourceController.execute(ResourceController.java:70) 
    at hudson.model.Executor.run(Executor.java:90) 

허드슨 환경 : 데비안 엣지, 일 JSDK 6, 자식 1.4.4.4,

답변

3

먼저 허드슨 최신 안정 다운로드, 망할 놈의 버전은 꽤 오래되었습니다. 다른 일을하기 전에 업데이트하는 것이 좋습니다.

둘째, git checkout -f origin/은 유효한 명령이 아닙니다. 분기를 체크 아웃해야하거나 커밋 해시 또는 태그를 지정하여 커밋을 체크 아웃하고 동일한 분기에서 새 분기를 만들 수 있습니다 (git checkout -b new-branch commit-hash 사용). 자세한 내용은 git-checkout man page을 참조하십시오.

+0

git을 v1.5.6으로 업데이트하고 분기를 명시 적으로 지정하면 트릭이 수행됩니다. – Ruben