mirror of
https://github.com/NixOS/hydra.git
synced 2024-10-18 17:02:28 -04:00
Fetch Git LFS objects
This commit is contained in:
parent
c1bd50a80d
commit
85019515d2
|
@ -17,9 +17,11 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, mdbook
|
, mdbook
|
||||||
|
|
||||||
|
, runtimeShellPackage
|
||||||
, unzip
|
, unzip
|
||||||
, libpqxx
|
, libpqxx
|
||||||
, top-git
|
, top-git
|
||||||
|
, git-lfs
|
||||||
, mercurial
|
, mercurial
|
||||||
, darcs
|
, darcs
|
||||||
, subversion
|
, subversion
|
||||||
|
@ -185,6 +187,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
darcs
|
darcs
|
||||||
foreman
|
foreman
|
||||||
top-git
|
top-git
|
||||||
|
git-lfs
|
||||||
mercurial
|
mercurial
|
||||||
subversion
|
subversion
|
||||||
breezy
|
breezy
|
||||||
|
@ -215,6 +218,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
unzip
|
unzip
|
||||||
git
|
git
|
||||||
top-git
|
top-git
|
||||||
|
git-lfs
|
||||||
|
runtimeShellPackage # For Git LFS: https://github.com/git-lfs/git-lfs/discussions/5196#discussioncomment-4221187
|
||||||
mercurial
|
mercurial
|
||||||
darcs
|
darcs
|
||||||
gnused
|
gnused
|
||||||
|
|
|
@ -148,7 +148,9 @@ sub fetchInput {
|
||||||
my $localBranch = _isHash($branch) ? "_hydra_tmp" : $branch;
|
my $localBranch = _isHash($branch) ? "_hydra_tmp" : $branch;
|
||||||
$res = run(cmd => ["git", "fetch", "-fu", "origin", "+$branch:$localBranch"], dir => $clonePath,
|
$res = run(cmd => ["git", "fetch", "-fu", "origin", "+$branch:$localBranch"], dir => $clonePath,
|
||||||
timeout => $cfg->{timeout});
|
timeout => $cfg->{timeout});
|
||||||
|
$res = run(cmd => ["git", "lfs", "fetch", "origin", $branch], dir => $clonePath, timeout => $cfg->{timeout}) unless $res->{status};
|
||||||
$res = run(cmd => ["git", "fetch", "-fu", "origin"], dir => $clonePath, timeout => $cfg->{timeout}) if $res->{status};
|
$res = run(cmd => ["git", "fetch", "-fu", "origin"], dir => $clonePath, timeout => $cfg->{timeout}) if $res->{status};
|
||||||
|
$res = run(cmd => ["git", "lfs", "fetch", "origin", "--all"], dir => $clonePath, timeout => $cfg->{timeout}) unless $res->{status};
|
||||||
die "error fetching latest change from git repo at `$uri':\n$res->{stderr}" if $res->{status};
|
die "error fetching latest change from git repo at `$uri':\n$res->{stderr}" if $res->{status};
|
||||||
|
|
||||||
# If deepClone is defined, then we look at the content of the repository
|
# If deepClone is defined, then we look at the content of the repository
|
||||||
|
|
Loading…
Reference in a new issue