No .git directory found!
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- build-system
调研方向
首先检查 script-git-version.gradle,并在报告中的 checkout 中复现 Gradle 构建。确定为什么 Grgit.open 需要 .git 目录,然后验证项目在受影响的环境中无需此异常即可成功构建。
由索引模型根据 Issue 内容生成。
描述
Error build gradle : Caused by: java.lang.IllegalStateException: No .git directory found!
In script-git-version.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.ajoberstar.grgit:grgit-core:4.1.1'
}
}
import org.ajoberstar.grgit.Grgit
ext {
git = Grgit.open(currentDir: projectDir)
gitCommitHash = git.head().abbreviatedId
gitNumberOfCommits = git.log().size()
gitTagDescription = git.describe(tags: true)
git.close()
}
- 主要语言
- Kotlin
- 星标
- 65
- 派生
- 57
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/mapbox-navigation-android-examples 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 3/5 1-2 天 新手友好度 25/100
mapbox/mapbox-navigation-android-examples#207 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
查看 mapbox/mapbox-navigation-android-examples 的全部 Issue
相似的 Issue
-
Blank screen in Download tab after searching with no results and switching tabs可能已有人在做 @mangod12 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 70/100
kiwix/kiwix-android#5211 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
deniscerri/ytdlnis#1430 ·
维护者通常 1 天内回复
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the app可能已有人在做 @falkloewert 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
submit-adaption submit-adaption-pre
难度 1/5 1 小时以内 新手友好度 75/100
BetterAndroid/android-notification-icon-project#763 · 1 条评论 ·
维护者通常 1 天内回复