[O] Fast path for serve
This commit is contained in:
@@ -41,6 +41,19 @@ fn detects_provider_disabled_repository_errors() {
|
||||
assert!(!is_disabled_repository_error(&generic_forbidden));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn detects_missing_repository_errors() {
|
||||
let error: anyhow::Error = GitCommandError::new(
|
||||
"git ls-remote",
|
||||
"",
|
||||
"remote: Repository not found.\nfatal: repository 'https://github.com/alice/missing.git/' not found",
|
||||
)
|
||||
.into();
|
||||
|
||||
assert!(is_missing_repository_error(&error));
|
||||
assert!(!is_disabled_repository_error(&error));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ls_remote_snapshot_changes_when_remote_refs_change() {
|
||||
let fixture = GitFixture::new();
|
||||
|
||||
Reference in New Issue
Block a user