Fix Labels Delete #180

Merged
6543 merged 3 commits from 6543/tea:fix-labels-delete into master 2020-09-17 12:47:59 +00:00
Showing only changes of commit bd86867bce - Show all commits

View File

@ -83,10 +83,8 @@ var AllDefaultFlags = append([]cli.Flag{
// initCommand returns repository and *Login based on flags
func initCommand() (*Login, string, string) {
var (
login *Login
repoPath string
)
var login *Login
err := loadConfig(yamlConfigPath)
if err != nil {
log.Fatal("load config file failed ", yamlConfigPath)
@ -102,7 +100,7 @@ func initCommand() (*Login, string, string) {
}
if exist || len(repoValue) == 0 {
login, repoPath, err = curGitRepoPath(repoValue)
login, repoValue, err = curGitRepoPath(repoValue)
if err != nil {
log.Fatal(err.Error())
}
@ -115,7 +113,7 @@ func initCommand() (*Login, string, string) {
}
}
owner, repo := getOwnerAndRepo(repoPath, login.User)
owner, repo := getOwnerAndRepo(repoValue, login.User)
return login, owner, repo
}