Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15345567
D18945.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18945.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
@@ -54,6 +54,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(
// NOTE: --perl-regexp is available only with libpcre compiled in.
@@ -95,12 +101,6 @@
$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 11, 11:24 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223773
Default Alt Text
D18945.diff (1 KB)
Attached To
Mode
D18945: Move the fix for Git 2.16.0 from the "Mercurial" part of the code to the "Git" part of the code
Attached
Detach File
Event Timeline
Log In to Comment