Skip to content

Commit

Permalink
fix: ensure commit hash data is 7 chars long
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Jan 8, 2018
1 parent d028083 commit 568f425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.widen.versioning' version '0.2.0'
id 'com.widen.versioning' version '0.2.1'
}

group 'widen'
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/widen/versioning/VersionGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static String generateFromGit(Settings settings) {
args.add("git");
args.add("describe");
args.add("--tags");
args.add("--abbrev=7");

if (settings.tagPrefix != null) {
args.add("--match");
Expand Down

0 comments on commit 568f425

Please sign in to comment.