Skip to content

Commit

Permalink
Fix snapshot suffix for untagged repos
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed Dec 2, 2020
1 parent dc3975d commit 4b276e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mill-git/src/com/goyeau/mill/git/GitVersionModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object GitVersionModule extends ExternalModule {
s"$tag$distanceHash"
case untaggedRegex(hash) =>
if (isDirty) uncommitted()
else hash.take(hashLength)
else s"${hash.take(hashLength)}$snapshotSuffix"
}
}
)
Expand Down

0 comments on commit 4b276e0

Please sign in to comment.