phabricator" arc land"与非原产地遥控?

时间:2014-07-11 23:56:16

标签: git phabricator

我正在尝试" arc land"远程未命名的变更" origin"。 (为什么不是特别重要,但短版本是多个遥控器......)。

arc的输出是:

$ arc land
Landing current branch 'FeatureX'.
Switched to branch develop. Updating branch...
Switched back to branch FeatureX.
Exception
Command failed with error #128!

COMMAND
git log 'origin/develop'..'develop'

STDOUT
(empty)

STDERR
fatal: ambiguous argument 'origin/develop..develop': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

另一方面,如果我尝试用--onto指定遥控器,我会得到一个不同的错误:

$ arc land --onto myremote/develop
Landing current branch 'FeatureX'.
Switched to branch myremote/develop. Updating branch...
Switched back to branch FeatureX.
Exception
Command failed with error #1!
COMMAND
git pull --ff-only --no-stat

STDOUT
(empty)

STDERR
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.

是否有配置设置可以指定要使用的arcanist的默认远程名称?

1 个答案:

答案 0 :(得分:3)

答案:没有配置选项,但有一个命令行选项:

arc land --remote myremote

或者,可以修改源以从配置中读取它:

ArcanistLandWorkflow.php:

     $remote_default = $this->isGit ? 'origin' : '';
+    $remote_default = nonempty(
+      $this->getConfigFromAnySource('arc.land.remote.default'),
+      $remote_default);
+      
     $this->remote = $this->getArgument('remote', $remote_default);

https://github.com/bitblitz/arcanist/commit/618dea07c067a31385f20b46063956b6674035f0