Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No .git directory found! #105

Open
ndeso17 opened this issue Jun 27, 2022 · 2 comments
Open

No .git directory found! #105

ndeso17 opened this issue Jun 27, 2022 · 2 comments

Comments

@ndeso17
Copy link

ndeso17 commented Jun 27, 2022

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()
}
@LukasPaczos
Copy link

Hey @ndeso17! Did you check out the git repository correctly?

@washington254
Copy link

that normally happens when you download the zip file directly from github try using git clone and add the necessary tokens in gradle.properties and mapbox_access_token.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants