aboutsummaryrefslogtreecommitdiffstats
path: root/commands/push.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-13 21:21:24 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-13 21:21:24 +0200
commit1779a0f3b92d58654b43444addeaf437a64d77a8 (patch)
tree9f973413454894f0456d7379425070d468712242 /commands/push.go
parent289f8d53ee960d35c1f0c42e8753ad536737b875 (diff)
downloadgit-bug-1779a0f3b92d58654b43444addeaf437a64d77a8.tar.gz
serialize a Bug to git as a blob+tree+commit+ref
Diffstat (limited to 'commands/push.go')
-rw-r--r--commands/push.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/push.go b/commands/push.go
index 9b808511..54a657b9 100644
--- a/commands/push.go
+++ b/commands/push.go
@@ -3,6 +3,7 @@ package commands
import (
"errors"
"fmt"
+ "github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/repository"
)
@@ -16,7 +17,7 @@ func push(repo repository.Repo, args []string) error {
remote = args[0]
}
- if err := repo.PushRefs(remote, bugsRefPattern); err != nil {
+ if err := repo.PushRefs(remote, bug.BugsRefPattern+"*"); err != nil {
return err
}
return nil