1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00
phorge-phorge/src/applications/repository/storage
epriestley a07f444f2a Fix git "origin" remote in more circumstances
Summary:
Fixes T4041. We currently detect when "origin" is incorrect, but can do better:

  - When "origin" is missing, we can add it. This happens for Git 1.7.1 -- see T4041.
  - When "origin" is wrong, we can fix it automatically if we control the repository.

We only need to fail when origin exists, is wrong, and we aren't in charge of the repository.

Test Plan: Ran `bin/repository discover X` on a repository with a good origin, no origin, a bad-but-under-control origin, and a bad-out-of-control origin. Got the right behavior in all cases.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, champo

Maniphest Tasks: T4041

Differential Revision: https://secure.phabricator.com/D7614
2013-11-20 10:41:56 -08:00
..
__tests__ Make Subversion URI construction more consistent 2013-11-20 10:41:25 -08:00
PhabricatorRepository.php Fix git "origin" remote in more circumstances 2013-11-20 10:41:56 -08:00
PhabricatorRepositoryArcanistProject.php Make PhabricatorPolicyInterface require a getPHID() method 2013-10-14 14:35:47 -07:00
PhabricatorRepositoryAuditRequest.php Split users apart from projects/packages in reviewer and audit UIs 2013-10-05 14:10:49 -07:00
PhabricatorRepositoryBranch.php Allow saving lint errors to database 2012-11-08 15:39:43 -08:00
PhabricatorRepositoryCommit.php Clean up Diffusion dedicated tag table view 2013-10-30 13:15:14 -07:00
PhabricatorRepositoryCommitData.php Diffusion - move DiffusionBrowseQuery => Conduit 2013-05-10 11:02:58 -07:00
PhabricatorRepositoryDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorRepositoryShortcut.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorRepositoryStatusMessage.php Add "RepositoryStatusMessage" and detailed information about initilization 2013-10-30 16:04:19 -07:00
PhabricatorRepositorySymbol.php Replace all "attach first..." exceptions with assertAttached() 2013-09-03 06:02:14 -07:00
PhabricatorRepositoryTransaction.php Add hosting, serving, and push policy options to repository edit 2013-10-29 15:32:40 -07:00
PhabricatorRepositoryVCSPassword.php Implementation of VCS passwords against user. 2013-11-01 08:34:11 -07:00