mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
refactor: base command
This commit is contained in:
parent
dda1e79c6f
commit
446445ee73
7 changed files with 42 additions and 85 deletions
|
@ -11,17 +11,14 @@ namespace SourceGit.Commands
|
|||
Context = ctx;
|
||||
WorkingDirectory = path;
|
||||
TraitErrorAsOutput = true;
|
||||
|
||||
if (string.IsNullOrEmpty(sshKey))
|
||||
Args = "-c credential.helper=manager ";
|
||||
else
|
||||
UseSSHKey(sshKey);
|
||||
|
||||
Args += "clone --progress --verbose --recurse-submodules ";
|
||||
SSHKey = sshKey;
|
||||
Args = "clone --progress --verbose --recurse-submodules ";
|
||||
|
||||
if (!string.IsNullOrEmpty(extraArgs))
|
||||
Args += $"{extraArgs} ";
|
||||
|
||||
Args += $"{url} ";
|
||||
|
||||
if (!string.IsNullOrEmpty(localName))
|
||||
Args += localName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue