diff options
author | Squibid <me@zacharyscheiman.com> | 2024-11-19 12:41:54 -0600 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-11-19 12:41:54 -0600 |
commit | 6259250120315534d31f28ffd03d36f1cdb30f7b (patch) | |
tree | 69b0d080bc31a2b574fce233ad80d214cefb1c27 /lua | |
parent | 25372aea36cef2a094b1a0d8f83e0199734944f6 (diff) | |
download | dep-6259250120315534d31f28ffd03d36f1cdb30f7b.tar.gz dep-6259250120315534d31f28ffd03d36f1cdb30f7b.tar.bz2 dep-6259250120315534d31f28ffd03d36f1cdb30f7b.zip |
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
Diffstat (limited to 'lua')
-rw-r--r-- | lua/dep/proc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |