forked from lix-project/hydra
Fallback for git fetch, which allows specific gits revisions to be used as build inputs.
This commit is contained in:
parent
c57242c76d
commit
f4a24b94ee
|
@ -344,6 +344,8 @@ sub fetchInputGit {
|
||||||
# only one branch of the remote repository.
|
# only one branch of the remote repository.
|
||||||
($res, $stdout, $stderr) = captureStdoutStderr(600,
|
($res, $stdout, $stderr) = captureStdoutStderr(600,
|
||||||
("git", "fetch", "-fu", "origin", "+$branch:$branch"));
|
("git", "fetch", "-fu", "origin", "+$branch:$branch"));
|
||||||
|
($res, $stdout, $stderr) = captureStdoutStderr(600,
|
||||||
|
("git", "fetch", "-fu", "origin")) unless $res;
|
||||||
die "Error fetching latest change from git repo at `$uri':\n$stderr" unless $res;
|
die "Error fetching latest change from git repo at `$uri':\n$stderr" unless $res;
|
||||||
|
|
||||||
($res, $stdout, $stderr) = captureStdoutStderr(600,
|
($res, $stdout, $stderr) = captureStdoutStderr(600,
|
||||||
|
|
Loading…
Reference in a new issue