Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401514
D18944.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
758 B
Referenced Files
None
Subscribers
None
D18944.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18944: Pass "." to `git grep` to satisfy "all paths" for Git 2.16.0
Attached
Detach File
Event Timeline
Log In to Comment