diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-01-11 18:42:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 18:42:29 +0000 |
commit | 757ad34b82c18f4d862a66730e3eead4272b1bfa (patch) | |
tree | a1393ccb7f21ec86e795b7e20f3cd58bfc048118 /pkgs/build-support/fetchgit/nix-prefetch-git | |
parent | 4f0da4558fc1e145bef49ab042f6eacdb4d4eb8f (diff) | |
parent | e3961ff41f0f6f6cb0927bcbc7235727eed288bf (diff) | |
download | nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.tar nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.tar.gz nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.tar.bz2 nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.tar.lz nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.tar.xz nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.tar.zst nixlib-757ad34b82c18f4d862a66730e3eead4272b1bfa.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 43f7c5acd5ad..3cb115c5e6e6 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -9,6 +9,7 @@ hashType=$NIX_HASH_ALGO deepClone=$NIX_PREFETCH_GIT_DEEP_CLONE leaveDotGit=$NIX_PREFETCH_GIT_LEAVE_DOT_GIT fetchSubmodules= +fetchLFS= builder= branchName=$NIX_PREFETCH_GIT_BRANCH_NAME @@ -72,6 +73,7 @@ for arg; do --quiet) QUIET=true;; --no-deepClone) deepClone=;; --leave-dotGit) leaveDotGit=true;; + --fetch-lfs) fetchLFS=true;; --fetch-submodules) fetchSubmodules=true;; --builder) builder=true;; -h|--help) usage; exit;; @@ -283,6 +285,11 @@ clone_user_rev() { local url="$2" local rev="${3:-HEAD}" + if [ -n "$fetchLFS" ]; then + HOME=$TMPDIR + git lfs install + fi + # Perform the checkout. case "$rev" in HEAD|refs/*) |