forked from lix-project/hydra
* hydra: on git ls-remote add refs/heads/ prefix to branchname to avoid other branches called master (or $branchname)
This commit is contained in:
parent
2278aa87eb
commit
161b88cfd0
|
@ -274,7 +274,7 @@ sub fetchInputGit {
|
||||||
# First figure out the last-modified revision of the URI.
|
# First figure out the last-modified revision of the URI.
|
||||||
my $stdout; my $stderr;
|
my $stdout; my $stderr;
|
||||||
(my $res, $stdout, $stderr) = captureStdoutStderr(
|
(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;
|
die "Cannot get head revision of Git branch '$branch' at `$uri':\n$stderr" unless $res;
|
||||||
|
|
||||||
(my $revision, my $ref) = split ' ', $stdout;
|
(my $revision, my $ref) = split ' ', $stdout;
|
||||||
|
|
Loading…
Reference in a new issue