forked from lix-project/hydra
Merge pull request #1215 from knedlsepp/fix-hydra-with-latest-git
scmdiff: Hardcode `--git-dir`
This commit is contained in:
commit
14d4624dc2
|
@ -216,8 +216,8 @@ sub scmdiff : Path('/api/scmdiff') Args(0) {
|
||||||
} elsif ($type eq "git") {
|
} elsif ($type eq "git") {
|
||||||
my $clonePath = getSCMCacheDir . "/git/" . sha256_hex($uri);
|
my $clonePath = getSCMCacheDir . "/git/" . sha256_hex($uri);
|
||||||
die if ! -d $clonePath;
|
die if ! -d $clonePath;
|
||||||
$diff .= `(cd $clonePath; git log $rev1..$rev2)`;
|
$diff .= `(cd $clonePath; git --git-dir .git log $rev1..$rev2)`;
|
||||||
$diff .= `(cd $clonePath; git diff $rev1..$rev2)`;
|
$diff .= `(cd $clonePath; git --git-dir .git diff $rev1..$rev2)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
$c->stash->{'plain'} = { data => (scalar $diff) || " " };
|
$c->stash->{'plain'} = { data => (scalar $diff) || " " };
|
||||||
|
|
Loading…
Reference in a new issue