support git branches as input in stead of only master branch

This commit is contained in:
Rob Vermaas 2009-11-23 13:38:27 +00:00
parent 06dc6d8f86
commit 94634773b1

View file

@ -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(