Skip to content

Commit

Permalink
Fix issue so that Git Config user.name is set correctly (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfennell authored Apr 4, 2024
1 parent f5aa349 commit fe5fbee
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export async function UpdateGitWikiFolder(
localpath,
user,
password,
name,
email,
gitName,
gitEmail,
targetFolder,
message,
sourceFolder,
Expand Down Expand Up @@ -158,8 +158,9 @@ export async function UpdateGitWikiFolder(
logInfo(`Cloned ${repo} to ${localpath}`);

await git.cwd(localpath);
await git.addConfig("user.name", name);
await git.addConfig("user.email", email);
logInfo(`Setting GitConfig Name:${gitName} Email:${gitEmail}`);
await git.addConfig("user.name", gitName);
await git.addConfig("user.email", gitEmail);
logInfo(`Set GIT values in ${localpath}`);

// move to the working folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": 2,
"Minor": 14,
"Patch": 2
"Patch": 3
},
"demands": [],
"minimumAgentVersion": "2.144.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export async function UpdateGitWikiFolder(
localpath,
user,
password,
name,
email,
gitName,
gitEmail,
targetFolder,
message,
sourceFolder,
Expand Down Expand Up @@ -158,8 +158,9 @@ export async function UpdateGitWikiFolder(
logInfo(`Cloned ${repo} to ${localpath}`);

await git.cwd(localpath);
await git.addConfig("user.name", name);
await git.addConfig("user.email", email);
logInfo(`Setting GitConfig Name:${gitName} Email:${gitEmail}`);
await git.addConfig("user.name", gitName);
await git.addConfig("user.email", gitEmail);
logInfo(`Set GIT values in ${localpath}`);

// move to the working folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export async function UpdateGitWikiFile(
localpath,
user,
password,
name,
email,
gitName,
gitEmail,
filename,
message,
contents,
Expand Down Expand Up @@ -156,8 +156,9 @@ export async function UpdateGitWikiFile(
logInfo(`Cloned ${repo} to ${localpath}`);

await git.cwd(localpath);
await git.addConfig("user.name", name);
await git.addConfig("user.email", email);
logInfo(`Setting GitConfig Name:${gitName} Email:${gitEmail}`);
await git.addConfig("user.name", gitName);
await git.addConfig("user.email", gitEmail);
logInfo(`Set GIT values in ${localpath}`);

// issue 969 - remove spaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": 2,
"Minor": 14,
"Patch": 2
"Patch": 3
},
"demands": [],
"minimumAgentVersion": "1.82.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export async function UpdateGitWikiFile(
localpath,
user,
password,
name,
email,
gitName,
gitEmail,
filename,
message,
contents,
Expand Down Expand Up @@ -169,8 +169,9 @@ export async function UpdateGitWikiFile(
logInfo(`Cloned ${repo} to ${localpath}`);

await git.cwd(localpath);
await git.addConfig("user.name", name);
await git.addConfig("user.email", email);
logInfo(`Setting GitConfig Name:${gitName} Email:${gitEmail}`);
await git.addConfig("user.name", gitName);
await git.addConfig("user.email", gitEmail);
logInfo(`Set GIT values in ${localpath}`);

// issue 969 - remove spaces
Expand Down

0 comments on commit fe5fbee

Please sign in to comment.