Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel committed Jan 11, 2024
1 parent fd94e43 commit d64f40a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion command/reporter.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package command

import (
"strings"
"github.com/konveyor/tackle2-hub/api"
"strings"
)

//
Expand Down
28 changes: 12 additions & 16 deletions repository/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,23 @@ func New(destDir string, remote *api.Repository, identities []api.Ref) (r SCM, e
if err != nil {
return
}
r = &Subversion{
Path: destDir,
Remote: *remote,
Authenticated: Authenticated{
Identities: identities,
Insecure: insecure,
},
}
svn := &Subversion{}
svn.Path = destDir
svn.Remote = *remote
svn.Identities = identities
svn.Insecure = insecure
r = svn
default:
insecure, err = addon.Setting.Bool("git.insecure.enabled")
if err != nil {
return
}
r = &Git{
Path: destDir,
Remote: *remote,
Authenticated: Authenticated{
Identities: identities,
Insecure: insecure,
},
}
git := &Git{}
git.Path = destDir
git.Remote = *remote
git.Identities = identities
git.Insecure = insecure
r = git
}
err = r.Validate()
return
Expand Down

0 comments on commit d64f40a

Please sign in to comment.