File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ impl CrateTrait for GitRepo {
86
86
. cd ( & path)
87
87
. process_lines ( & mut detect_private_repositories)
88
88
. run ( )
89
- . with_context ( || PrepareError :: GitFailure {
89
+ . with_context ( || PrepareError :: GitOperationFailed {
90
90
action : "update" ,
91
91
url : self . url . clone ( ) ,
92
92
} )
@@ -98,7 +98,7 @@ impl CrateTrait for GitRepo {
98
98
. args ( & [ & path] )
99
99
. process_lines ( & mut detect_private_repositories)
100
100
. run ( )
101
- . with_context ( || PrepareError :: GitFailure {
101
+ . with_context ( || PrepareError :: GitOperationFailed {
102
102
action : "clone" ,
103
103
url : self . url . clone ( ) ,
104
104
} )
@@ -124,7 +124,7 @@ impl CrateTrait for GitRepo {
124
124
. args ( & [ "clone" ] )
125
125
. args ( & [ self . cached_path ( workspace) . as_path ( ) , dest] )
126
126
. run ( )
127
- . with_context ( || PrepareError :: GitFailure {
127
+ . with_context ( || PrepareError :: GitOperationFailed {
128
128
action : "checkout" ,
129
129
url : self . url . clone ( ) ,
130
130
} ) ?;
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ pub enum PrepareError {
414
414
InvalidCargoLock ( String ) ,
415
415
/// git clone/fetch failed, but repository didn't appear to be private
416
416
#[ error( "git failed to {action} for {url}" ) ]
417
- GitFailure {
417
+ GitOperationFailed {
418
418
/// action that was attempted
419
419
action : & ' static str ,
420
420
/// repo url
You can’t perform that action at this time.
0 commit comments