mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
assume github as default
This commit is contained in:
parent
17997e15c0
commit
2448a204df
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) {
|
|||
.split("/")
|
||||
setRepo(split[0], split[1], "gitlab")
|
||||
}
|
||||
!url.startsWith("https://") -> { // assume default as github
|
||||
val split = url
|
||||
.removeSurrounding("/")
|
||||
.split("/")
|
||||
setRepo(split[0], split[1], "github")
|
||||
}
|
||||
else -> throw IllegalArgumentException("Unknown domain, please set repository via setRepo(user, repo, type)")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue