File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/gei/Commands/MigrateRepo Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,21 @@ private void DefaultSourcePat(OctoLogger log)
120120 private void ValidateOrgAndRepoNames ( )
121121 {
122122 if ( ! string . IsNullOrWhiteSpace ( GithubSourceOrg ) && Uri . IsWellFormedUriString ( GithubSourceOrg , UriKind . Absolute ) )
123+ {
123124 throw new OctoshiftCliException ( "GithubSourceOrg should be an org name, not a URL." ) ;
124-
125+ }
125126 if ( ! string . IsNullOrWhiteSpace ( GithubTargetOrg ) && Uri . IsWellFormedUriString ( GithubTargetOrg , UriKind . Absolute ) )
127+ {
126128 throw new OctoshiftCliException ( "GithubTargetOrg should be an org name, not a URL." ) ;
127-
129+ }
128130 if ( ! string . IsNullOrWhiteSpace ( SourceRepo ) && Uri . IsWellFormedUriString ( SourceRepo , UriKind . Absolute ) )
131+ {
129132 throw new OctoshiftCliException ( "SourceRepo should be a repo name, not a URL." ) ;
130-
133+ }
131134 if ( ! string . IsNullOrWhiteSpace ( TargetRepo ) && Uri . IsWellFormedUriString ( TargetRepo , UriKind . Absolute ) )
135+ {
132136 throw new OctoshiftCliException ( "TargetRepo should be a repo name, not a URL." ) ;
137+ }
133138 }
134139 }
135140}
You can’t perform that action at this time.
0 commit comments