diff options
| author | SirLynix <[email protected]> | 2024-01-24 15:52:21 +0100 |
|---|---|---|
| committer | SirLynix <[email protected]> | 2024-01-24 15:52:21 +0100 |
| commit | 2642cdebef6642fb0fd69020a3b7084d62246b58 (patch) | |
| tree | 6cbf6dd6314715f22559410187c36ac194bc7791 /xmake/modules/devel/git/clone.lua | |
| parent | 85bfb36d4e608662b74e5c42ac9e6a9052b3451e (diff) | |
Disable git core.autocrl on repositories and force pull
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
| -rw-r--r-- | xmake/modules/devel/git/clone.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua index a1e7ca8eb..bdd02caf1 100644 --- a/xmake/modules/devel/git/clone.lua +++ b/xmake/modules/devel/git/clone.lua @@ -115,6 +115,15 @@ function main(url, opt) table.insert(argv, "core.fsmonitor=false") end + -- set core.autocrlf + if opt.autocrlf then + table.insert(argv, "-c") + table.insert(argv, "core.autocrlf=true") + elseif opt.autocrlf == false then + table.insert(argv, "-c") + table.insert(argv, "core.autocrlf=false") + end + -- set outputdir if opt.outputdir then table.insert(argv, path.translate(opt.outputdir)) |
