diff options
-rw-r--r-- | commands/comment.go | 2 | ||||
-rw-r--r-- | commands/label.go | 2 | ||||
-rw-r--r-- | commands/new.go | 2 | ||||
-rw-r--r-- | doc/man/git-bug-comment.1 | 2 | ||||
-rw-r--r-- | doc/man/git-bug-label.1 | 2 | ||||
-rw-r--r-- | doc/man/git-bug-new.1 | 2 | ||||
-rw-r--r-- | doc/md/git-bug_comment.md | 2 | ||||
-rw-r--r-- | doc/md/git-bug_label.md | 2 | ||||
-rw-r--r-- | doc/md/git-bug_new.md | 2 | ||||
-rw-r--r-- | repository/git.go | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/commands/comment.go b/commands/comment.go index 0f45c18d..35937e2b 100644 --- a/commands/comment.go +++ b/commands/comment.go @@ -65,7 +65,7 @@ func runComment(cmd *cobra.Command, args []string) error { } var commentCmd = &cobra.Command{ - Use: "comment <id> [<options>...]", + Use: "comment <id>", Short: "Add a new comment to a bug", RunE: runComment, } diff --git a/commands/label.go b/commands/label.go index b545852f..713d9b35 100644 --- a/commands/label.go +++ b/commands/label.go @@ -49,7 +49,7 @@ func runLabel(cmd *cobra.Command, args []string) error { } var labelCmd = &cobra.Command{ - Use: "label [<option>...] <id> [<label>...]", + Use: "label <id> [<label>...]", Short: "Manipulate bug's label", RunE: runLabel, } diff --git a/commands/new.go b/commands/new.go index ce6479f1..c7846aea 100644 --- a/commands/new.go +++ b/commands/new.go @@ -53,7 +53,7 @@ func runNewBug(cmd *cobra.Command, args []string) error { } var newCmd = &cobra.Command{ - Use: "new [<option>...]", + Use: "new", Short: "Create a new bug", RunE: runNewBug, } diff --git a/doc/man/git-bug-comment.1 b/doc/man/git-bug-comment.1 index 3996f279..da2cfa24 100644 --- a/doc/man/git-bug-comment.1 +++ b/doc/man/git-bug-comment.1 @@ -10,7 +10,7 @@ git\-bug\-comment \- Add a new comment to a bug .SH SYNOPSIS .PP -\fBgit\-bug comment <id> [<options>\&...] [flags]\fP +\fBgit\-bug comment <id> [flags]\fP .SH DESCRIPTION diff --git a/doc/man/git-bug-label.1 b/doc/man/git-bug-label.1 index 8daee4bf..6f50dd10 100644 --- a/doc/man/git-bug-label.1 +++ b/doc/man/git-bug-label.1 @@ -10,7 +10,7 @@ git\-bug\-label \- Manipulate bug's label .SH SYNOPSIS .PP -\fBgit\-bug label [<option>\&...] <id> [<label>\&...] [flags]\fP +\fBgit\-bug label <id> [<label>\&...] [flags]\fP .SH DESCRIPTION diff --git a/doc/man/git-bug-new.1 b/doc/man/git-bug-new.1 index 17efc1f7..b0f0ae8b 100644 --- a/doc/man/git-bug-new.1 +++ b/doc/man/git-bug-new.1 @@ -10,7 +10,7 @@ git\-bug\-new \- Create a new bug .SH SYNOPSIS .PP -\fBgit\-bug new [<option>\&...] [flags]\fP +\fBgit\-bug new [flags]\fP .SH DESCRIPTION diff --git a/doc/md/git-bug_comment.md b/doc/md/git-bug_comment.md index 432cd3cb..87541f8a 100644 --- a/doc/md/git-bug_comment.md +++ b/doc/md/git-bug_comment.md @@ -7,7 +7,7 @@ Add a new comment to a bug Add a new comment to a bug ``` -git-bug comment <id> [<options>...] [flags] +git-bug comment <id> [flags] ``` ### Options diff --git a/doc/md/git-bug_label.md b/doc/md/git-bug_label.md index a6e6bf37..16efe4ed 100644 --- a/doc/md/git-bug_label.md +++ b/doc/md/git-bug_label.md @@ -7,7 +7,7 @@ Manipulate bug's label Manipulate bug's label ``` -git-bug label [<option>...] <id> [<label>...] [flags] +git-bug label <id> [<label>...] [flags] ``` ### Options diff --git a/doc/md/git-bug_new.md b/doc/md/git-bug_new.md index 92edeb12..c04e944d 100644 --- a/doc/md/git-bug_new.md +++ b/doc/md/git-bug_new.md @@ -7,7 +7,7 @@ Create a new bug Create a new bug ``` -git-bug new [<option>...] [flags] +git-bug new [flags] ``` ### Options diff --git a/repository/git.go b/repository/git.go index 5b5cbc3d..c5dc5618 100644 --- a/repository/git.go +++ b/repository/git.go @@ -169,7 +169,7 @@ func (repo *GitRepo) PushRefs(remote string, refSpec string) (string, error) { stdout, stderr, err := repo.runGitCommandRaw(nil, "push", remote, refSpec) if err != nil { - return stdout + stderr, fmt.Errorf("failed to push to the remote '%s': %v", remote, err) + return stdout + stderr, fmt.Errorf("failed to push to the remote '%s': %v", remote, stderr) } return stdout + stderr, nil } |