Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14784166
D21341.id50804.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21341.id50804.diff
View Options
diff --git a/src/land/engine/ArcanistGitLandEngine.php b/src/land/engine/ArcanistGitLandEngine.php
--- a/src/land/engine/ArcanistGitLandEngine.php
+++ b/src/land/engine/ArcanistGitLandEngine.php
@@ -885,6 +885,11 @@
$onto_ref));
}
}
+
+ // TODO: Check that these refs really exist in the remote? Checking the
+ // remote is expensive and users probably rarely specify "--onto" manually,
+ // but if "arc land" creates branches without prompting when you make typos
+ // that also seems questionable.
}
protected function selectOntoRefs(array $symbols) {
@@ -1491,7 +1496,7 @@
foreach ($this->getOntoRefs() as $onto_ref) {
$refspecs[] = sprintf(
- '%s:%s',
+ '%s:refs/heads/%s',
$this->getDisplayHash($into_commit),
$onto_ref);
}
diff --git a/src/land/engine/ArcanistLandEngine.php b/src/land/engine/ArcanistLandEngine.php
--- a/src/land/engine/ArcanistLandEngine.php
+++ b/src/land/engine/ArcanistLandEngine.php
@@ -1361,7 +1361,7 @@
}
$into = $this->getIntoArgument();
- if ($into && ($into_empty !== null)) {
+ if ($into && $into_empty) {
throw new PhutilArgumentUsageException(
pht(
'Arguments "--into" and "--into-empty" are mutually exclusive.'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 11:13 AM (16 h, 30 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7050024
Default Alt Text
D21341.id50804.diff (1 KB)
Attached To
Mode
D21341: Refine "arc land" behavior when pushing "onto" a new branch
Attached
Detach File
Event Timeline
Log In to Comment