refactor: do NOT use the --prune parameter for git fetch command (#590)

This commit is contained in:
leo 2024-10-22 16:53:48 +08:00
parent 077e35b860
commit b9d7f908c9
No known key found for this signature in database
13 changed files with 7 additions and 27 deletions

View file

@ -4,7 +4,7 @@ namespace SourceGit.Commands
{
public class Fetch : Command
{
public Fetch(string repo, string remote, bool prune, bool noTags, Action<string> outputHandler)
public Fetch(string repo, string remote, bool noTags, Action<string> outputHandler)
{
_outputHandler = outputHandler;
WorkingDirectory = repo;
@ -13,9 +13,6 @@ namespace SourceGit.Commands
SSHKey = new Config(repo).Get($"remote.{remote}.sshkey");
Args = "fetch --progress --verbose ";
if (prune)
Args += "--prune ";
if (noTags)
Args += "--no-tags ";
else