3

我正在尝试在遥控器未命名为“原点”的情况下“弧地”进行更改。(为什么不是特别重要,但简短的版本是多个遥控器......)。

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.

是否有可以指定奥术师使用的默认遥控器名称的配置设置?

4

1 回答 1

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

于 2014-07-12T00:34:22.337 回答