fix: both --tags and --no-tags are used in git pull command

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-06 10:37:50 +08:00
parent 81bbe11345
commit 78c0d8d334
No known key found for this signature in database

View file

@ -11,10 +11,11 @@ namespace SourceGit.Commands
Context = repo; Context = repo;
TraitErrorAsOutput = true; TraitErrorAsOutput = true;
SSHKey = new Config(repo).Get($"remote.{remote}.sshkey"); SSHKey = new Config(repo).Get($"remote.{remote}.sshkey");
Args = "pull --verbose --progress --tags "; Args = "pull --verbose --progress ";
if (useRebase) if (useRebase)
Args += "--rebase "; Args += "--rebase=true ";
if (noTags) if (noTags)
Args += "--no-tags "; Args += "--no-tags ";