diff options
author | Michael Muré <batolettre@gmail.com> | 2021-02-05 11:18:38 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-02-14 12:19:01 +0100 |
commit | e35c7c4d170d1b682992c95f1c14772158501015 (patch) | |
tree | fdebdffa3e531ca3494c66627ba3396214a792d9 /bug | |
parent | fe4237df3c62bd6dfd1f385893295f93072d0e51 (diff) | |
download | git-bug-e35c7c4d170d1b682992c95f1c14772158501015.tar.gz |
entity: more testing and bug fixing
Diffstat (limited to 'bug')
-rw-r--r-- | bug/bug_actions.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bug/bug_actions.go b/bug/bug_actions.go index 0e240711..bf894ef8 100644 --- a/bug/bug_actions.go +++ b/bug/bug_actions.go @@ -14,19 +14,12 @@ import ( // Fetch retrieve updates from a remote // This does not change the local bugs state func Fetch(repo repository.Repo, remote string) (string, error) { - // "refs/bugs/*:refs/remotes/<remote>>/bugs/*" - remoteRefSpec := fmt.Sprintf(bugsRemoteRefPattern, remote) - fetchRefSpec := fmt.Sprintf("%s*:%s*", bugsRefPattern, remoteRefSpec) - - return repo.FetchRefs(remote, fetchRefSpec) + return repo.FetchRefs(remote, "bugs") } // Push update a remote with the local changes func Push(repo repository.Repo, remote string) (string, error) { - // "refs/bugs/*:refs/bugs/*" - refspec := fmt.Sprintf("%s*:%s*", bugsRefPattern, bugsRefPattern) - - return repo.PushRefs(remote, refspec) + return repo.PushRefs(remote, "bugs") } // Pull will do a Fetch + MergeAll |