mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Resolve SVN commit identifier inside Git in lint saver
Test Plan: $ git svn find-rev r11 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5173
This commit is contained in:
parent
cacbfba9f1
commit
2cd4f2e827
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ final class DiffusionLintSaveRunner {
|
|||
|
||||
if ($this->lintCommit) {
|
||||
try {
|
||||
$all_files = $api->getChangedFiles($this->lintCommit);
|
||||
$commit = $this->lintCommit;
|
||||
if ($this->svnRoot) {
|
||||
$commit = $api->getCanonicalRevisionName('@'.$commit);
|
||||
}
|
||||
$all_files = $api->getChangedFiles($commit);
|
||||
} catch (ArcanistCapabilityNotSupportedException $ex) {
|
||||
$this->lintCommit = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue