mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01:00
Move the fix for Git 2.16.0 from the "Mercurial" part of the code to the "Git" part of the code
Summary: Ref T13050. Oh boy. Both of them run `grep`! Test Plan: Will push again. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13050 Differential Revision: https://secure.phabricator.com/D18945
This commit is contained in:
parent
a80d1e7e7d
commit
162563d40b
1 changed files with 6 additions and 6 deletions
|
@ -54,6 +54,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(
|
||||
// NOTE: --perl-regexp is available only with libpcre compiled in.
|
||||
|
@ -95,12 +101,6 @@ 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',
|
||||
|
|
Loading…
Reference in a new issue