mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-22 21:40:54 +01:00
Fix an issue in arc patch with git-svn
Summary:
We recently moved our HEAD and it caused some issues on `arc patch` with git-svn repos. The base revision is incorrect and patch will fail. Add the check in such case to make it work.
The check was there before but removed in change b202158
. The reason wasn't mentioned there though.
Test Plan: Tried it on svn.
Reviewers: lifeihuang, JoelB, #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D8717
This commit is contained in:
parent
f099168aa8
commit
0cff627d75
1 changed files with 2 additions and 0 deletions
|
@ -296,6 +296,8 @@ EOTEXT
|
|||
$base_revision = $bundle->getBaseRevision();
|
||||
|
||||
if ($base_revision && $has_base_revision) {
|
||||
$base_revision = $repository_api->getCanonicalRevisionName(
|
||||
$base_revision);
|
||||
$repository_api->execxLocal(
|
||||
'checkout -b %s %s',
|
||||
$branch_name,
|
||||
|
|
Loading…
Reference in a new issue