Обновление git до v1.5.6 и явное указание ветки сделали свое дело.

я использую плагин Git для Hudson, моя работа всегда дает сбой при получении последних источников из моего онлайн-репозитория git (git: //github.com/ithena/orm2dsl.git).

Сначала запускается плагин gitgit fetch успешно. Затем он пытается выполнитьgit checkout -f origin/ , который терпит неудачу как показано ниже. Это проблема смой репозиторий или это команда checkout, которая не имеет смысла?

Команда Git без ветки, заданной в конфигурации задания:

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 с веткой, установленной на master в конфигурации задания:

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?

Выход консоли Hudson:

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)

Окружающая среда Гудзона: Debian Etch, Sun JSDK 6, git 1.4.4.4, последняя стабильная загрузка hudson

Ответы на вопрос(1)

Ваш ответ на вопрос