Repository: scala-steward-org/scala-steward
Pull request #2997 (2023-03-01 09:45:20)

Add Play Framework and myself to README
My merged pull requests so far: https://github.com/scala-steward-org/scala-steward/pulls?q=author%3Amkurz+is%3Amerged


Patch:
diff --git a/README.md b/README.md
index 49a4dd81..f94394aa 100644
--- a/README.md
+++ b/README.md
@@ -126,6 +126,7 @@ Thanks goes to these wonderful people for contributing to Scala Steward:
 * [Mark van der Tol](https://github.com/markvandertol)
 * [MaT1g3R](https://github.com/MaT1g3R)
 * [Mat Mannion](https://github.com/matmannion)
+* [Matthias Kurz](https://github.com/mkurz)
 * [Michael Wizner](https://github.com/mwz)
 * [Michel Daviot](https://github.com/tyrcho)
 * [miguelpuyol](https://github.com/miguelpuyol)
@@ -185,6 +186,7 @@ Consider creating PR to add your company to the list and join the community.
 * [Lightbend](https://www.lightbend.com/)
 * [Mobimeo](https://www.mobimeo.com/)
 * [Ocado Technology](https://ocadotechnology.com/)
+* [Play Framework](https://www.playframework.com/)
 * [PlayQ](https://www.playq.com/)
 * [Precog](https://precog.com/)
 * [Rewards Network](https://www.rewardsnetwork.com/)
diff --git a/modules/core/src/main/scala/org/scalasteward/core/git/FileGitAlg.scala b/modules/core/src/main/scala/org/scalasteward/core/git/FileGitAlg.scala
index 5e2e8ff9..c2a6a2cd 100644
--- a/modules/core/src/main/scala/org/scalasteward/core/git/FileGitAlg.scala
+++ b/modules/core/src/main/scala/org/scalasteward/core/git/FileGitAlg.scala
@@ -55,7 +55,9 @@ final class FileGitAlg[F[_]](config: GitCfg)(implicit
   override def clone(repo: File, url: Uri): F[Unit] =
     for {
       rootDir <- workspaceAlg.rootDir
-      _ <- git_("clone", url.toString, repo.pathAsString)(rootDir)
+      _ <- git_("clone", "-c", "clone.defaultRemoteName=origin", url.toString, repo.pathAsString)(
+        rootDir
+      )
     } yield ()
 
   override def cloneExists(repo: File): F[Boolean] =


Test patch:
diff --git a/modules/core/src/test/scala/org/scalasteward/core/forge/ForgeRepoAlgTest.scala b/modules/core/src/test/scala/org/scalasteward/core/forge/ForgeRepoAlgTest.scala
index 13b302ff..2853bcc1 100644
--- a/modules/core/src/test/scala/org/scalasteward/core/forge/ForgeRepoAlgTest.scala
+++ b/modules/core/src/test/scala/org/scalasteward/core/forge/ForgeRepoAlgTest.scala
@@ -37,7 +37,14 @@ class ForgeRepoAlgTest extends CatsEffectSuite {
     val expected = MockState.empty.copy(
       trace = Vector(
         Log("Clone scala-steward/datapackage"),
-        Cmd(gitCmd(config.workspace), "clone", forkUrl, repoDir.toString),
+        Cmd(
+          gitCmd(config.workspace),
+          "clone",
+          "-c",
+          "clone.defaultRemoteName=origin",
+          forkUrl,
+          repoDir.toString
+        ),
         Cmd(gitCmd(repoDir), "config", "user.email", "bot@example.org"),
         Cmd(gitCmd(repoDir), "config", "user.name", "Bot Doe"),
         Log("Synchronize with fthomas/datapackage"),
@@ -64,7 +71,14 @@ class ForgeRepoAlgTest extends CatsEffectSuite {
     val expected = MockState.empty.copy(
       trace = Vector(
         Log("Clone fthomas/datapackage"),
-        Cmd(gitCmd(config.workspace), "clone", parentUrl, repoDir.toString),
+        Cmd(
+          gitCmd(config.workspace),
+          "clone",
+          "-c",
+          "clone.defaultRemoteName=origin",
+          parentUrl,
+          repoDir.toString
+        ),
         Cmd(gitCmd(repoDir), "config", "user.email", "bot@example.org"),
         Cmd(gitCmd(repoDir), "config", "user.name", "Bot Doe"),
         Cmd(gitCmd(repoDir), "submodule", "update", "--init", "--recursive")