Skip to content

Commit 0dd1ecd

Browse files
committed
feat(test): report PrepareWorkingDirectoryError reason
1 parent 8581349 commit 0dd1ecd

File tree

3 files changed

+181
-93
lines changed

3 files changed

+181
-93
lines changed

git-branchless-lib/src/git/run.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl std::fmt::Debug for GitRunInfo {
4242
}
4343

4444
/// Options for invoking Git.
45+
#[derive(Clone)]
4546
pub struct GitRunOpts {
4647
/// If set, a non-zero exit code will be treated as an error.
4748
pub treat_git_failure_as_error: bool,

git-branchless-submit/src/phabricator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
446446
}
447447
};
448448
match test_output.test_status {
449-
TestStatus::CheckoutFailed
449+
TestStatus::CheckoutFailed(_)
450450
| TestStatus::SpawnTestFailed(_)
451451
| TestStatus::TerminatedBySignal
452452
| TestStatus::AlreadyInProgress
@@ -708,7 +708,7 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
708708
.into_iter()
709709
.partition(|(_commit_oid, test_output)| match test_output.test_status {
710710
TestStatus::Passed { .. } => true,
711-
TestStatus::CheckoutFailed
711+
TestStatus::CheckoutFailed(_)
712712
| TestStatus::SpawnTestFailed(_)
713713
| TestStatus::TerminatedBySignal
714714
| TestStatus::AlreadyInProgress

0 commit comments

Comments
 (0)