diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-21 18:18:51 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-21 18:53:37 +0200 |
commit | 82eaceffc1d750832a2a66f206749d2dca968cce (patch) | |
tree | 1431c8f1fd9baa689b850da7f104d12c20b1d8a7 /commands/add.go | |
parent | 6a575fbf483e2b28821908f67e87637d9e5cea75 (diff) | |
download | git-bug-82eaceffc1d750832a2a66f206749d2dca968cce.tar.gz |
repo: split the Repo interface to avoid abstraction leak in RepoCache
Diffstat (limited to 'commands/add.go')
-rw-r--r-- | commands/add.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/add.go b/commands/add.go index 3fa75f26..944f0a99 100644 --- a/commands/add.go +++ b/commands/add.go @@ -31,7 +31,7 @@ func runAddBug(cmd *cobra.Command, args []string) error { defer backend.Close() if addMessage == "" || addTitle == "" { - addTitle, addMessage, err = input.BugCreateEditorInput(backend.Repository(), addTitle, addMessage) + addTitle, addMessage, err = input.BugCreateEditorInput(backend, addTitle, addMessage) if err == input.ErrEmptyTitle { fmt.Println("Empty title, aborting.") |