1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02: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:
epriestley 2018-02-06 16:00:45 -08:00
parent 56bf069080
commit a5bbadbaba

View file

@ -37,7 +37,11 @@ final class DiffusionQueryPathsConduitAPIMethod
$commit = $request->getValue('commit');
$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(
'ls-tree --name-only -r -z %s -- %s',