From 6c0d118cb32518f64d6ffebfb799db742b1b9ad3 Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Wed, 4 May 2022 17:07:43 +0100 Subject: [PATCH] Try using local config instead (#2755) --- .azure-pipelines/steps/clone-repo.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/steps/clone-repo.yml b/.azure-pipelines/steps/clone-repo.yml index 5c73685315e7..3e63d26ccc9b 100644 --- a/.azure-pipelines/steps/clone-repo.yml +++ b/.azure-pipelines/steps/clone-repo.yml @@ -14,7 +14,7 @@ steps: git version git lfs version echo "Updating git config" - git config --global init.defaultBranch master + git config init.defaultBranch master git init "$BUILD_REPOSITORY_LOCALPATH" git remote add origin "$BUILD_REPOSITORY_URI" git config gc.auto 0 @@ -27,8 +27,8 @@ steps: git checkout --force $prBranch displayName: checkout - bash: | - git config --global user.email "gitfun@example.com" - git config --global user.name "Automatic Merge" + git config user.email "gitfun@example.com" + git config user.name "Automatic Merge" git merge ${{ parameters.masterCommitId }} git status displayName: merge