mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-07 11:54:59 +00:00
feature: support to use relative path as submodule's url when adding new submodule (#1339)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
ece51fbd32
commit
438aa76695
3 changed files with 28 additions and 14 deletions
|
@ -13,7 +13,7 @@ namespace SourceGit.Commands
|
|||
|
||||
public bool Add(string url, string relativePath, bool recursive)
|
||||
{
|
||||
Args = $"submodule add {url} \"{relativePath}\"";
|
||||
Args = $"-c protocol.file.allow=always submodule add \"{url}\" \"{relativePath}\"";
|
||||
if (!Exec())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue