Skip to content

Commit 3e55e79

Browse files
committed
feat(test): report PrepareWorkingDirectoryError reason
1 parent 8c36f0b commit 3e55e79

File tree

3 files changed

+182
-95
lines changed

3 files changed

+182
-95
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
@@ -444,7 +444,7 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
444444
}
445445
};
446446
match test_output.test_status {
447-
TestStatus::CheckoutFailed
447+
TestStatus::CheckoutFailed(_)
448448
| TestStatus::SpawnTestFailed(_)
449449
| TestStatus::TerminatedBySignal
450450
| TestStatus::AlreadyInProgress
@@ -706,7 +706,7 @@ Differential Revision: https://phabricator.example.com/D000$(git rev-list --coun
706706
.into_iter()
707707
.partition(|(_commit_oid, test_output)| match test_output.test_status {
708708
TestStatus::Passed { .. } => true,
709-
TestStatus::CheckoutFailed
709+
TestStatus::CheckoutFailed(_)
710710
| TestStatus::SpawnTestFailed(_)
711711
| TestStatus::TerminatedBySignal
712712
| TestStatus::AlreadyInProgress

0 commit comments

Comments
 (0)