We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5584d88 commit 712d751Copy full SHA for 712d751
src/main/kotlin/org/dropProject/dao/Assignment.kt
@@ -209,8 +209,8 @@ data class Assignment(
209
210
val parts = gitRepositoryUrl.split(":")
211
val hostAndPath = parts[1].removeSuffix(".git").split("/")
212
- val username = parts[0].substringAfter("@")
213
- val host = hostAndPath[0]
+ val host = parts[0].substringAfter("@")
+ val username = hostAndPath[0]
214
val repositoryName = hostAndPath[1]
215
216
return "https://$host/$username/$repositoryName"
0 commit comments