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:
leo 2025-05-21 00:10:10 +08:00
parent ece51fbd32
commit 438aa76695
No known key found for this signature in database
3 changed files with 28 additions and 14 deletions

View file

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