-
Notifications
You must be signed in to change notification settings - Fork 10
Support git-lfs (large file storage) #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
317931e
5bb20c1
4d63629
b98ca06
bf81c75
d539c21
8f66ab0
b9196af
fc31cd4
895f9aa
f1d3d3a
1df470c
ee765d9
9610718
b63f460
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using OpenSSH_jll: OpenSSH_jll | ||
using Git_LFS_jll: Git_LFS_jll | ||
using JLLWrappers: pathsep, LIBPATH_env | ||
|
||
""" | ||
|
@@ -67,6 +68,19 @@ function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true) | |
git_cmd = addenv(git_cmd, "PATH" => join(path, pathsep), LIBPATH_env => join(libpath, pathsep)) | ||
end | ||
|
||
# Add git-lfs | ||
if Git_LFS_jll.is_available() | ||
# Read path from git_cmd.env as it can be modified above | ||
idx = findfirst(startswith("PATH="), git_cmd.env) | ||
path = if isnothing(idx) | ||
"" | ||
else | ||
# dropping the `PATH=` part | ||
git_cmd.env[idx][6:end] | ||
end | ||
path = vcat(dirname(Git_LFS_jll.git_lfs_path), path) | ||
git_cmd = addenv(git_cmd, "PATH" => join(path, pathsep))::Cmd | ||
end | ||
Comment on lines
+71
to
+83
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not modifying this above where you still have access to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is my "fault". Basically, 317931e#r2213866417 I don't know what the implications are for defaulting back to |
||
return git_cmd | ||
end | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.