Skip to content

Commit

Permalink
Fix git command
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jan 18, 2022
1 parent d581ef2 commit 31b32bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ object GitHelper {
*/
def previousReleases(fromHead: Boolean = false): List[V] = {
Try {
val merged = if (fromHead) " --merged" else ""
val merged = if (fromHead) " --merged HEAD" else ""
// --no-contains omits tags on HEAD
s"git tag --no-contains$merged".!!.split("\n").toList.map(_.trim).collect {
s"git tag --no-contains HEAD$merged".!!.split("\n").toList.map(_.trim).collect {
case V.Tag(version) => version
}
}.getOrElse(List.empty).sorted.reverse
Expand Down

0 comments on commit 31b32bb

Please sign in to comment.