File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,6 @@ pub enum Error {
205
205
FindImagesRepo { source : repo:: Error } ,
206
206
#[ snafu( display( "images repository has no work directory" ) ) ]
207
207
NoImagesRepoWorkdir ,
208
- #[ snafu( display( "images repository root at {path:?} is not a directory" ) ) ]
209
- ImagesRepoRootDirCheck { path : PathBuf } ,
210
208
211
209
#[ snafu( display( "failed to fetch patch series' base commit" ) ) ]
212
210
FetchBaseCommit { source : repo:: Error } ,
@@ -269,19 +267,14 @@ fn main() -> Result<()> {
269
267
. context ( ConfigureGitLoggingSnafu ) ?;
270
268
271
269
let opts = <Opts as clap:: Parser >:: parse ( ) ;
272
- let images_repo_root_pathbuf = match opts. images_repo_root {
273
- Some ( path) => {
274
- if !path. is_dir ( ) {
275
- return ImagesRepoRootDirCheckSnafu { path } . fail ( ) ;
276
- }
277
- path
278
- }
270
+ let images_repo_root = match opts. images_repo_root {
271
+ Some ( path) => path,
279
272
None => {
280
273
let images_repo = repo:: discover_images_repo ( "." ) . context ( FindImagesRepoSnafu ) ?;
281
274
images_repo. workdir ( ) . context ( NoImagesRepoWorkdirSnafu ) ?. to_owned ( )
282
275
}
283
276
} ;
284
- let images_repo_root = images_repo_root_pathbuf . as_path ( ) ;
277
+ let images_repo_root = images_repo_root . as_path ( ) ;
285
278
match opts. cmd {
286
279
Cmd :: Checkout { pv, base_only } => {
287
280
let ctx = ProductVersionContext {
You can’t perform that action at this time.
0 commit comments