3

Git サーバーからブランチを取得しようとしています。

私のgradleファイルは次のようになります:

apply plugin: 'java'
apply plugin: 'eclipse'


buildscript {
  repositories { mavenCentral() }
  dependencies { classpath 'org.ajoberstar:gradle-git:0.6.3' }
}

import org.ajoberstar.gradle.git.tasks.*

task getBranchName(type: GitBranchList) << {
    print getWorkingBranch().name
}

しかし、私はエラーが発生します:

Caused by: org.gradle.api.UncheckedIOException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: C:\workspace\GradleTC
4

1 に答える 1