Skip to content

Commit

Permalink
no auth for ext retag (erda-project#2645)
Browse files Browse the repository at this point in the history
jferic authored Oct 28, 2021
1 parent 4737d03 commit 4e3668b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/cli/command/root_cmd.go
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ var (
"init",
"parse",
"version",
"retag",
"migrate",
"lint",
"mkpy",
@@ -118,8 +119,9 @@ func setHost() error {
if os.IsNotExist(err) {
fmt.Print("Enter your dice host: ")
fmt.Scanln(&host)
} else if err != nil {
return err
}
return err
} else {
// fetch host from git remote url
cmd := exec.Command("git", "remote", "get-url", "origin")

0 comments on commit 4e3668b

Please sign in to comment.