Fallback for git fetch, which allows specific gits revisions to be used as build inputs.

This commit is contained in:
Rob Vermaas 2012-09-11 22:31:49 +02:00
parent c57242c76d
commit f4a24b94ee

View file

@ -344,6 +344,8 @@ sub fetchInputGit {
# only one branch of the remote repository.
($res, $stdout, $stderr) = captureStdoutStderr(600,
("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;
($res, $stdout, $stderr) = captureStdoutStderr(600,