Skip to content

Commit 483bc5b

Browse files
committed
Enforce that we check only against remote parent branches
This fixes issues where local versions of parent branches are stale, giving wrong filtered issues
1 parent d51de1e commit 483bc5b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/Git/BranchComparer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
class BranchComparer
88
{
99
/** @internal */
10-
const BRANCH_MASTER = 'master';
10+
const BRANCH_MASTER = 'origin/master';
1111
/** @internal */
12-
const BRANCH_DEVELOP = 'develop';
12+
const BRANCH_DEVELOP = 'origin/develop';
1313
/** @internal */
1414
const CORE_BRANCH_NUM_BACK_FOR_DIFF = 10;
1515
/** @internal */
@@ -19,8 +19,8 @@ class BranchComparer
1919
];
2020
/** @internal */
2121
const GLOB_STANDARD_ANCESTORS = [
22-
'sprint/*',
23-
'release/*',
22+
'origin/sprint/*',
23+
'origin/release/*',
2424
];
2525

2626
/** @var Git */

src/Git/Git.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ public function findBranches($glob)
256256
return $branchesResult;
257257
}
258258

259+
public function fetchAll()
260+
{
261+
$this->cli->getResultString('git fetch --all');
262+
}
263+
259264
/**
260265
* @param string[] $modifiedFiles
261266
* @return array

0 commit comments

Comments
 (0)