simple checking for remote packets

This commit is contained in:
2025-10-26 21:47:06 -03:00
parent aa65b28112
commit a62ddf8270
5 changed files with 113 additions and 44 deletions

View File

@@ -64,6 +64,9 @@ func LGitCheckout(L *lua.LState) int {
func LGitPUll(L *lua.LState) int {
dir := L.CheckString(1)
git.PlainClone("/tmp", &git.CloneOptions{})
depth := 1
if L.GetTop() > 1 {
depth = L.CheckInt(2)