From f4a24b94ee425fe039f727955159b72e3d6e275c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 11 Sep 2012 22:31:49 +0200 Subject: [PATCH] Fallback for git fetch, which allows specific gits revisions to be used as build inputs. --- src/lib/Hydra/Helper/AddBuilds.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 1fc99365..0d57dee0 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -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,