feature: ignore remote.{REMOTE}.mirror settings (#844)

(cherry picked from commit 9164f1b7340f68e00fea99bf9bac67734062f930)
This commit is contained in:
leo 2024-12-30 14:53:48 +08:00
parent 7f268a6557
commit 093176d10b
No known key found for this signature in database

View file

@ -12,7 +12,7 @@ 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 = "push --progress --verbose "; Args = $"-c remote.{remote}.mirror=false push --progress --verbose ";
if (withTags) if (withTags)
Args += "--tags "; Args += "--tags ";