Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Microsoft.DotNet.Darc/DarcLib/LocalGitClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public async Task CommitAsync(
(string Name, string Email)? author = null,
CancellationToken cancellationToken = default)
{
IEnumerable<string> args = new[] { "commit", "-m", message };
IEnumerable<string> args = new[] { "commit", "--no-gpg-sign", "-m", message };

if (allowEmpty)
{
Expand All @@ -178,7 +178,7 @@ public async Task CommitAmendAsync(
string repoPath,
CancellationToken cancellationToken = default)
{
var result = await _processManager.ExecuteGit(repoPath, ["commit", "--amend", "--no-edit"], cancellationToken: cancellationToken);
var result = await _processManager.ExecuteGit(repoPath, ["commit", "--amend", "--no-edit", "--no-gpg-sign"], cancellationToken: cancellationToken);
result.ThrowIfFailed($"Failed to amend commit in {repoPath}");
}

Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.DotNet.Darc/DarcLib/RemoteRepoBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected async Task CommitFilesAsync(
await _processManager.ExecuteGit(clonedRepo, ["add", filePath, "-f"]);
}

var commitResult = await _processManager.ExecuteGit(clonedRepo, ["commit", "--allow-empty", "-m", commitMessage]);
var commitResult = await _processManager.ExecuteGit(clonedRepo, ["commit", "--allow-empty", "--no-gpg-sign", "-m", commitMessage]);
commitResult.ThrowIfFailed($"Failed to commit changes on branch '{branch}'");

logger.LogInformation("Pushing branch {branch} to {remoteUri}", branch, remote);
Expand Down
Loading