@@ -11,8 +11,6 @@ pub enum Error {
11
11
PackThreads ( #[ from] config:: unsigned_integer:: Error ) ,
12
12
#[ error( "The value to configure the pack index version should be 1 or 2" ) ]
13
13
PackIndexVersion ( #[ from] config:: key:: GenericError ) ,
14
- #[ error( "Could not decode server reply" ) ]
15
- FetchResponse ( #[ from] gix_protocol:: fetch:: response:: Error ) ,
16
14
#[ error( "Cannot fetch from a remote that uses {remote} while local repository uses {local} for object hashes" ) ]
17
15
IncompatibleObjectHash {
18
16
local : gix_hash:: Kind ,
@@ -21,48 +19,29 @@ pub enum Error {
21
19
#[ error( transparent) ]
22
20
LoadAlternates ( #[ from] gix_odb:: store:: load_index:: Error ) ,
23
21
#[ error( transparent) ]
24
- Negotiate ( #[ from] gix_protocol:: fetch:: negotiate:: Error ) ,
25
- #[ error( transparent) ]
26
22
Client ( #[ from] gix_protocol:: transport:: client:: Error ) ,
27
23
#[ error( transparent) ]
28
- WritePack ( #[ from] gix_pack:: bundle:: write:: Error ) ,
29
- #[ error( transparent) ]
30
24
UpdateRefs ( #[ from] super :: refs:: update:: Error ) ,
31
25
#[ error( "Failed to remove .keep file at \" {}\" " , path. display( ) ) ]
32
26
RemovePackKeepFile {
33
27
path : std:: path:: PathBuf ,
34
28
source : std:: io:: Error ,
35
29
} ,
36
- #[ error( transparent) ]
37
- ShallowOpen ( #[ from] crate :: shallow:: read:: Error ) ,
38
- #[ error( "Server lack feature {feature:?}: {description}" ) ]
39
- MissingServerFeature {
40
- feature : & ' static str ,
41
- description : & ' static str ,
42
- } ,
43
30
#[ error( "None of the refspec(s) {} matched any of the {num_remote_refs} refs on the remote" , refspecs. iter( ) . map( |r| r. to_ref( ) . instruction( ) . to_bstring( ) . to_string( ) ) . collect:: <Vec <_>>( ) . join( ", " ) ) ]
44
31
NoMapping {
45
32
refspecs : Vec < gix_refspec:: RefSpec > ,
46
33
num_remote_refs : usize ,
47
34
} ,
48
- #[ error( "Could not write 'shallow' file to incorporate remote updates after fetching" ) ]
49
- WriteShallowFile ( #[ from] crate :: shallow:: write:: Error ) ,
50
- #[ error( "'shallow' file could not be locked in preparation for writing changes" ) ]
51
- LockShallowFile ( #[ from] gix_lock:: acquire:: Error ) ,
52
35
#[ error( "Could not obtain configuration to learn if shallow remotes should be rejected" ) ]
53
36
RejectShallowRemoteConfig ( #[ from] config:: boolean:: Error ) ,
54
- #[ error( "Receiving objects from shallow remotes is prohibited due to the value of `clone.rejectShallow`" ) ]
55
- RejectShallowRemote ,
56
37
#[ error( transparent) ]
57
38
NegotiationAlgorithmConfig ( #[ from] config:: key:: GenericErrorWithValue ) ,
58
- #[ error( "Failed to read remaining bytes in stream" ) ]
59
- ReadRemainingBytes ( #[ source] std:: io:: Error ) ,
60
39
}
61
40
62
41
impl gix_protocol:: transport:: IsSpuriousError for Error {
63
42
fn is_spurious ( & self ) -> bool {
64
43
match self {
65
- Error :: FetchResponse ( err) => err. is_spurious ( ) ,
44
+ Error :: Fetch ( err) => err. is_spurious ( ) ,
66
45
Error :: Client ( err) => err. is_spurious ( ) ,
67
46
_ => false ,
68
47
}
0 commit comments