Skip to content

Commit

Permalink
Fix git ls-remote regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Olafur Pall Geirsson committed Sep 23, 2019
1 parent a0ba83d commit 8ae3442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ object CiReleasePlugin extends AutoPlugin {
case Some(info) => Some(info)
case None =>
import scala.sys.process._
val identifier = """([a-zA-Z0-9]+)"""
val GitHubHttps = raw"https://github.com/$identifier/$identifier".r
val identifier = """([^\/]+)"""
val GitHubHttps = s"https://github.com/$identifier/$identifier".r
try {
val remote = List("git", "ls-remote", "--get-url", "origin").!!.trim()
remote match {
Expand Down

0 comments on commit 8ae3442

Please sign in to comment.