feature: add an option to enable --recurse-submodules=check on push (#345)

This commit is contained in:
leo 2024-08-20 15:20:58 +08:00
parent d66053a42d
commit d4a9343eaf
No known key found for this signature in database
7 changed files with 39 additions and 10 deletions

View file

@ -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)