gpt4 book ai didi

git - phabricator "arc land"与非源 Remote ?

转载 作者:太空狗 更新时间:2023-10-29 14:07:36 25 4
gpt4 key购买 nike

我正在尝试“arc land” Remote 未命名为“origin”的更改。 (为什么不是特别重要,但简而言之就是多个 Remote ...)。

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 指定 Remote ,我会得到一个不同的错误:

$ 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.

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

最佳答案

答:没有配置选项,但是有命令行选项:

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

关于git - phabricator "arc land"与非源 Remote ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24708219/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com