Final Version.
Tested on ubuntu 12.04 64bit
This commit is contained in:
parent
62e8106130
commit
9b458060fd
|
@ -37,7 +37,7 @@ class LocalBuild extends Build
|
||||||
if($gitConfig["core"]["bare"]) {
|
if($gitConfig["core"]["bare"]) {
|
||||||
// Looks like we're right. We need to extract the archive!
|
// Looks like we're right. We need to extract the archive!
|
||||||
$guid = uniqid();
|
$guid = uniqid();
|
||||||
$builder->executeCommand('mkdir "/tmp/%s" && git archive master | tar -x -C "/tmp/%s"', $guid, $guid);
|
$builder->executeCommand('mkdir "/tmp/%s" && git --git-dir="%s" archive master | tar -x -C "/tmp/%s"', $guid, $reference, $guid);
|
||||||
$reference = '/tmp/'.$guid;
|
$reference = '/tmp/'.$guid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue