2014-07-11 97 views
3

我想「弧地」改變遠程沒有命名爲「起源」的地方。 (爲什麼不是特別重要,但短版是多個遙控器...)。phabricator「arc land」with non-origin remote?

弧的輸出是:

$ 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使用?

回答

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