File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,15 @@ fn handle(
120
120
None
121
121
}
122
122
123
+ if let Some ( parent_repo_path) = find_parent_repo ( git_workdir) {
124
+ progress. fail ( format ! (
125
+ "Skipping repository at {:?} as it is nested within repository {:?}" ,
126
+ git_workdir. display( ) ,
127
+ parent_repo_path
128
+ ) ) ;
129
+ return Ok ( ( ) ) ;
130
+ }
131
+
123
132
let url = match find_origin_remote ( git_workdir) ? {
124
133
None => {
125
134
progress. info ( format ! (
@@ -139,14 +148,6 @@ fn handle(
139
148
return Ok ( ( ) ) ;
140
149
}
141
150
142
- if let Some ( parent_repo_path) = find_parent_repo ( git_workdir) {
143
- progress. fail ( format ! (
144
- "Skipping repository at {:?} as it is nested within repository {:?}" ,
145
- git_workdir. display( ) ,
146
- parent_repo_path
147
- ) ) ;
148
- return Ok ( ( ) ) ;
149
- }
150
151
let destination = canonicalized_destination
151
152
. join (
152
153
url. host
You can’t perform that action at this time.
0 commit comments