mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Fix another Git 2.16.0 CLI compatibility issue
Summary: This command also needs a "." instead of an empty string now. (This powers the file browser typeahead in Diffusion.) Test Plan: Will test in production since there's still no easy 2.16 installer for macOS. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D19010
This commit is contained in:
parent
56bf069080
commit
a5bbadbaba
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ final class DiffusionQueryPathsConduitAPIMethod
|
||||||
$commit = $request->getValue('commit');
|
$commit = $request->getValue('commit');
|
||||||
$repository = $drequest->getRepository();
|
$repository = $drequest->getRepository();
|
||||||
|
|
||||||
// http://comments.gmane.org/gmane.comp.version-control.git/197735
|
// Recent versions of Git don't work if you pass the empty string, and
|
||||||
|
// require "." to list everything.
|
||||||
|
if (!strlen($path)) {
|
||||||
|
$path = '.';
|
||||||
|
}
|
||||||
|
|
||||||
$future = $repository->getLocalCommandFuture(
|
$future = $repository->getLocalCommandFuture(
|
||||||
'ls-tree --name-only -r -z %s -- %s',
|
'ls-tree --name-only -r -z %s -- %s',
|
||||||
|
|
Loading…
Reference in a new issue