mapbox / mapbox/mapbox-navigation-android-examples
No .git directory found!
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 65
- Forks
- 56
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 2
Description
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()
}
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting script-git-version.gradle and reproducing the Gradle build in the reported checkout. Determine why Grgit.open requires a .git directory, then verify that the project builds successfully in the affected environment without this exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100