Page MenuHomePhabricator

D18944.diff
No OneTemporary

D18944.diff

diff --git a/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php
--- a/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php
+++ b/src/applications/diffusion/conduit/DiffusionSearchQueryConduitAPIMethod.php
@@ -95,6 +95,12 @@
$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',

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 6:02 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7522398
Default Alt Text
D18944.diff (758 B)

Event Timeline