mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Don't attempt to discover parents commits for untracked branchs.
Summary: Fixes T5195. Currently, the `./bin/repository parents` workflow doesn't respect tracked branches and will attempt to build parents caches for all branches. Test Plan: For at least one of our repositories, this patch fixes the `Unknown commit` exception. Unfortunately, it doesn't seem to completely solve this problem though, but I suspect that this is due to commits that were overwritten with a `git push --force` or similar. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5195 Differential Revision: https://secure.phabricator.com/D9322
This commit is contained in:
parent
3929309225
commit
2f668493a0
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ final class PhabricatorRepositoryManagementParentsWorkflow
|
|||
|
||||
$graph = array();
|
||||
foreach ($refs as $ref) {
|
||||
if (!$repo->shouldTrackBranch($ref->getRefName())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$console->writeOut(
|
||||
"%s\n",
|
||||
pht('Rebuilding branch "%s"...', $ref->getRefName()));
|
||||
|
|
Loading…
Reference in a new issue