* hydra: on git ls-remote add refs/heads/ prefix to branchname to avoid other branches called master (or $branchname)

This commit is contained in:
Rob Vermaas 2010-03-15 10:02:30 +00:00
parent 2278aa87eb
commit 161b88cfd0

View file

@ -274,7 +274,7 @@ sub fetchInputGit {
# First figure out the last-modified revision of the URI.
my $stdout; my $stderr;
(my $res, $stdout, $stderr) = captureStdoutStderr(
"git", "ls-remote", $uri, $branch);
"git", "ls-remote", $uri, "refs/heads/".$branch);
die "Cannot get head revision of Git branch '$branch' at `$uri':\n$stderr" unless $res;
(my $revision, my $ref) = split ' ', $stdout;