diff --git a/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php index af973f102d..4290a7f6b5 100644 --- a/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php +++ b/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php @@ -95,6 +95,12 @@ final class DiffusionSearchQueryConduitAPIMethod $limit = $request->getValue('limit'); $offset = $request->getValue('offset'); + // Starting with Git 2.16.0, Git assumes passing an empty argument is + // an error and recommends you pass "." instead. + if (!strlen($path)) { + $path = '.'; + } + $results = array(); $future = $repository->getLocalCommandFuture( 'grep --rev %s --print0 --line-number -- %s %s',