add --asset flag to tea releases create (#6)

Co-Authored-By: noerw <noerw@users.noreply.github.com>
This commit is contained in:
Norwin
2019-03-11 17:32:09 +01:00
committed by Lauris BH
parent 6220a10628
commit 4de0b04d77
4 changed files with 47 additions and 14 deletions

View File

@@ -186,7 +186,7 @@ func curGitRepoPath() (*Login, string, error) {
cmd := git.NewCommand("remote", "get-url", "origin")
u, err := cmd.RunInDir(filepath.Dir(os.Args[0]))
if err != nil || len(u) == 0 {
return nil, "", errors.New("You have to indicated a repo or execute the command in a repo")
return nil, "", errors.New("You have to indicate a repo or execute the command in a repo")
}
p, err := local_git.ParseURL(strings.TrimSpace(u))