From 94634773b1e83bd2a6b7e56cb4a95ae582ecf41c Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 23 Nov 2009 13:38:27 +0000 Subject: [PATCH] support git branches as input in stead of only master branch --- src/lib/Hydra/Helper/AddBuilds.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 6765f28b..e4a7e639 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -218,13 +218,13 @@ sub fetchInputBuild { sub fetchInputGit { my ($db, $project, $jobset, $name, $type, $value) = @_; - my $uri = $value; + (my $uri, my $branch) = split ' ', $value; + $branch = defined $branch ? $branch : "master"; + my $timestamp = time; my $sha256; my $storePath; - my $branch = "master"; - # First figure out the last-modified revision of the URI. my $stdout; my $stderr; (my $res, $stdout, $stderr) = captureStdoutStderr(