Skip to content

Commit

Permalink
refactor entire architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
j3ssie committed Oct 11, 2020
1 parent 082bf90 commit 23408ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ func ReplicationJob(input string, sign libs.Signature) ([]libs.Job, error) {
if oPort == "" {
cloneURL.Host += nPort
} else {
// avoid duplicate port here
if strings.Contains(cloneURL.Host, nPort) {
continue
}
cloneURL.Host = strings.Replace(cloneURL.Host, fmt.Sprintf(":%s", oPort), nPort, -1)
}

Expand Down

0 comments on commit 23408ae

Please sign in to comment.