File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -416,18 +416,9 @@ fn validate_project_dir(project: PathBuf) -> PathBuf {
416
416
}
417
417
418
418
// check if there is .git subfolder in the project dir
419
- let git_path = project. join ( ".git" ) ;
420
- if git_path. is_file ( ) {
421
- // multi-repos place .git file in submodules pointing at the parent module
422
- eprintln ! (
423
- "STACKMUNCHER CONFIG ERROR: {} is a sub-module in a multi-repo." ,
424
- project. to_string_lossy( )
425
- ) ;
426
- eprintln ! ( " Sorry, multi-repos are not supported yet. Try cloning this sub-module as a standalone repo." ) ;
427
- eprintln ! ( " See https://github.com/stackmuncher/stm_app/issues/31 for details" ) ;
428
- help:: emit_usage_msg ( ) ;
429
- exit ( 1 ) ;
430
- } else if !git_path. is_dir ( ) {
419
+ // it can also be `.git` text file that contains a pointer to the parent repo
420
+ // in a multi-repo set up
421
+ if !project. join ( ".git" ) . exists ( ) {
431
422
// there is no sign of git here
432
423
eprintln ! ( "STACKMUNCHER ERROR: No Git repository found in {}" , project. to_string_lossy( ) ) ;
433
424
eprintln ! ( " * either run the app from the root of a project with a Git repository" ) ;
You can’t perform that action at this time.
0 commit comments