Page MenuHomePhorge

terrible-recurse-hack
ActivePublic

Authored by roguelazer on May 2 2022, 20:04.
--- arcanist/src/repository/api/ArcanistGitAPI.php.orig 2022-05-02 20:03:00.802722862 +0000
+++ arcanist/src/repository/api/ArcanistGitAPI.php 2022-05-02 20:03:40.072809150 +0000
@@ -16,11 +16,11 @@
private $symbolicHeadCommit;
private $resolvedHeadCommit;
protected function buildLocalFuture(array $argv) {
- $argv[0] = 'git '.$argv[0];
+ $argv[0] = 'git -c submodule.recurse=0 '.$argv[0];
return newv('ExecFuture', $argv)
->setCWD($this->getPath());
}
@@ -38,11 +38,11 @@
} else {
$git = 'git';
}
}
- $args[0] = $git.' '.$args[0];
+ $args[0] = $git.' -c submodule.recurse=0 '.$args[0];
return newv('PhutilExecPassthru', $args)
->setCWD($this->getPath());
}