From 6259250120315534d31f28ffd03d36f1cdb30f7b Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 19 Nov 2024 12:41:54 -0600 Subject: fix: --unshallow errors if the repo is already unshallow instead we use --depth=2147483647 because as noted by the docs... The special depth 2147483647 (or 0x7fffffff, the largest positive number a signed 32-bit integer can contain) means infinite depth. https://git-scm.com/docs/shallow --- lua/dep/proc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dep/proc.lua b/lua/dep/proc.lua index 3355228..cf3aa9c 100644 --- a/lua/dep/proc.lua +++ b/lua/dep/proc.lua @@ -62,7 +62,7 @@ function proc.git_reset(dir, treeish, cb) end function proc.git_checkout(dir, branch, commit, cb) - local args = { "fetch", "--unshallow", "origin", branch } + local args = { "fetch", "--depth=2147483647", "origin", branch } proc.exec("git", args, dir, git_env, function(err, message) cb(err, message) -- cgit v1.2.1