forked from lix-project/hydra
Revert "Use git fetch --all to update local clone in stead of git pull. Also, do not use --branch in initial clone."
This reverts commit 53329ecc61
.
This commit is contained in:
parent
53329ecc61
commit
79211d5efe
1 changed files with 2 additions and 2 deletions
|
@ -328,14 +328,14 @@ sub fetchInputGit {
|
||||||
my $stdout; my $stderr;
|
my $stdout; my $stderr;
|
||||||
if (! -d $clonePath) {
|
if (! -d $clonePath) {
|
||||||
(my $res, $stdout, $stderr) = captureStdoutStderr(600,
|
(my $res, $stdout, $stderr) = captureStdoutStderr(600,
|
||||||
("git", "clone", $uri, $clonePath));
|
("git", "clone", "--branch", $branch, $uri, $clonePath));
|
||||||
die "Error cloning git repo at `$uri':\n$stderr" unless $res;
|
die "Error cloning git repo at `$uri':\n$stderr" unless $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
# git pull + check rev
|
# git pull + check rev
|
||||||
chdir $clonePath or die $!; # !!! urgh, shouldn't do a chdir
|
chdir $clonePath or die $!; # !!! urgh, shouldn't do a chdir
|
||||||
(my $res, $stdout, $stderr) = captureStdoutStderr(600,
|
(my $res, $stdout, $stderr) = captureStdoutStderr(600,
|
||||||
("git", "fetch", "--all"));
|
("git", "pull"));
|
||||||
die "Error pulling latest change git repo at `$uri':\n$stderr" unless $res;
|
die "Error pulling latest change git repo at `$uri':\n$stderr" unless $res;
|
||||||
|
|
||||||
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,
|
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,
|
||||||
|
|
Loading…
Reference in a new issue