From 0f5fcba2441a7149dd5a369b10d151e36485ed99 Mon Sep 17 00:00:00 2001 From: Eric Loots Date: Fri, 13 May 2022 12:07:46 +0200 Subject: [PATCH] Change git config setting to local insteaad of global (#161) --- core/src/main/scala/cmt/Helpers.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/cmt/Helpers.scala b/core/src/main/scala/cmt/Helpers.scala index 5aa22db5..6a341328 100644 --- a/core/src/main/scala/cmt/Helpers.scala +++ b/core/src/main/scala/cmt/Helpers.scala @@ -163,13 +163,13 @@ object Helpers: def setGitConfig(linearizedProject: File): Either[String, Unit] = import ProcessDSL.toProcessCmd - s"git config --global init.defaultBranch main" + s"git config --local init.defaultBranch main" .toProcessCmd(workingDir = linearizedProject) .runWithStatus(toConsoleRed(s"Failed to default branch name in ${linearizedProject.getPath}")) - s"""git config --global user.email "eric.loots@toto.com"""" + s"""git config --local user.email "eric.loots@toto.com"""" .toProcessCmd(workingDir = linearizedProject) .runWithStatus(toConsoleRed(s"Failed to set 'user.mail' in git configuration")) - s"""git config --global user.name "Eric Loots"""" + s"""git config --local user.name "Eric Loots"""" .toProcessCmd(workingDir = linearizedProject) .runWithStatus(toConsoleRed(s"Failed to set 'user.name' in git configuration")) end setGitConfig