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

Why --abbrev=4 ? #6

Open
venantius opened this issue Nov 6, 2014 · 1 comment
Open

Why --abbrev=4 ? #6

venantius opened this issue Nov 6, 2014 · 1 comment

Comments

@venantius
Copy link

This just bit me when I tried to copy-paste the 7-char version tag from git describe directly into my dependencies. Is there a reason for why lein git-version only uses a 4 character subset of these?

@joekiller
Copy link

This is merely 4 because it is so. No real reason. If you want to use something else you can update your ~/.lein/profiles.clj to include something like

{:user {:plugins :git-version {:version-cmd "git describe --match v*.* --abbrev=7 --dirty"}}

johannesloetzsch pushed a commit to johannesloetzsch/lein-git-version that referenced this issue Aug 31, 2019
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

2 participants