From 2a09ae64a441538bfc0b722fb668b3b567eee8eb Mon Sep 17 00:00:00 2001 From: Gadfly Date: Thu, 1 Aug 2024 10:02:09 +0800 Subject: [PATCH] fix: support revert merge commit --- src/Commands/Revert.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Revert.cs b/src/Commands/Revert.cs index b6c3913a..2e7afd11 100644 --- a/src/Commands/Revert.cs +++ b/src/Commands/Revert.cs @@ -6,9 +6,9 @@ { WorkingDirectory = repo; Context = repo; - Args = $"revert {commit} --no-edit"; + Args = $"revert -m 1 {commit} --no-edit"; if (!autoCommit) - Args += " --no-commit"; + Args += " --no-commit"; } } }