Skip to content

Commit 451ae8d

Browse files
committed
feat(submit:phabricator): pass --allow-untracked to arc
This is normal when moving back and forth between commits that change a `.gitignore`: there might be files which are untracked in one commit but ignored in another.
1 parent 88d505a commit 451ae8d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

git-branchless-submit/src/phabricator.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl Forge for PhabricatorForge<'_> {
365365
.map_err(|err| Error::VerifyPermissions { source: err })?
366366
.map_err(Error::BuildRebasePlan)?;
367367
let command = if !should_mock() {
368-
let mut args = vec!["arc", "diff", "--create", "--verbatim"];
368+
let mut args = vec!["arc", "diff", "--create", "--verbatim", "--allow-untracked"];
369369
if *draft {
370370
args.push("--draft");
371371
}
@@ -614,7 +614,14 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
614614
.map_err(Error::BuildRebasePlan)?;
615615
let test_options = ResolvedTestOptions {
616616
command: if !should_mock() {
617-
let mut args = vec!["arc", "diff", "--head", "HEAD", "HEAD^"];
617+
let mut args = vec![
618+
"arc",
619+
"diff",
620+
"--head",
621+
"HEAD",
622+
"HEAD^",
623+
"--allow-untracked",
624+
];
618625
args.extend(match message {
619626
Some(message) => ["-m", message.as_ref()],
620627
None => ["-m", "update"],

0 commit comments

Comments
 (0)