mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
feature: add an option to enable --recurse-submodules=check
on push (#345)
This commit is contained in:
parent
d66053a42d
commit
d4a9343eaf
7 changed files with 39 additions and 10 deletions
|
@ -4,7 +4,7 @@ namespace SourceGit.Commands
|
|||
{
|
||||
public class Push : Command
|
||||
{
|
||||
public Push(string repo, string local, string remote, string remoteBranch, bool withTags, bool force, bool track, Action<string> onProgress)
|
||||
public Push(string repo, string local, string remote, string remoteBranch, bool withTags, bool checkSubmodules, bool track, bool force, Action<string> onProgress)
|
||||
{
|
||||
_outputHandler = onProgress;
|
||||
|
||||
|
@ -16,6 +16,8 @@ namespace SourceGit.Commands
|
|||
|
||||
if (withTags)
|
||||
Args += "--tags ";
|
||||
if (checkSubmodules)
|
||||
Args += "--recurse-submodules=check ";
|
||||
if (track)
|
||||
Args += "-u ";
|
||||
if (force)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue