aboutsummaryrefslogtreecommitdiffstats
path: root/commands/comment_add.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-21 18:18:51 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-21 18:53:37 +0200
commit82eaceffc1d750832a2a66f206749d2dca968cce (patch)
tree1431c8f1fd9baa689b850da7f104d12c20b1d8a7 /commands/comment_add.go
parent6a575fbf483e2b28821908f67e87637d9e5cea75 (diff)
downloadgit-bug-82eaceffc1d750832a2a66f206749d2dca968cce.tar.gz
repo: split the Repo interface to avoid abstraction leak in RepoCache
Diffstat (limited to 'commands/comment_add.go')
-rw-r--r--commands/comment_add.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/comment_add.go b/commands/comment_add.go
index 8898ea45..0a83eb65 100644
--- a/commands/comment_add.go
+++ b/commands/comment_add.go
@@ -29,7 +29,7 @@ func runCommentAdd(cmd *cobra.Command, args []string) error {
}
if commentAddMessage == "" {
- commentAddMessage, err = input.BugCommentEditorInput(backend.Repository())
+ commentAddMessage, err = input.BugCommentEditorInput(backend)
if err == input.ErrEmptyMessage {
fmt.Println("Empty message, aborting.")
return nil