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

git describe fails with “fatal: No names found, cannot describe anything.” #41

Open
arklanq opened this issue Mar 10, 2021 · 1 comment

Comments

@arklanq
Copy link

arklanq commented Mar 10, 2021

fatal: No names found, cannot describe anything.

This error log is shown in console every time server starts up or build is processing.

This can be useful I think:
https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything

My configuration:

const RELEASE_ID = nextBuildId.sync({describe: true, fallbackToSha: true});
@arklanq
Copy link
Author

arklanq commented Mar 11, 2021

I think that it was caused by the .dockerignore file in my project, which ignored .git directory while copying files from my project directory to docker container. Anyway there should be a fix for it, ex. return undefined in such situation.

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

No branches or pull requests

1 participant