Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

No .git directory found!

Open
#105 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, kotlin
Domain
build-system

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.

Description

jira-sync-complete

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()
}
Dominant language
Kotlin
Stars
65
Forks
56
Avg merge
1d 4h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/mapbox-navigation-android-examples

All issues in mapbox/mapbox-navigation-android-examples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.