aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity_actions.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-02-05 11:18:38 +0100
committerMichael Muré <batolettre@gmail.com>2021-02-14 12:19:01 +0100
commite35c7c4d170d1b682992c95f1c14772158501015 (patch)
treefdebdffa3e531ca3494c66627ba3396214a792d9 /identity/identity_actions.go
parentfe4237df3c62bd6dfd1f385893295f93072d0e51 (diff)
downloadgit-bug-e35c7c4d170d1b682992c95f1c14772158501015.tar.gz
entity: more testing and bug fixing
Diffstat (limited to 'identity/identity_actions.go')
-rw-r--r--identity/identity_actions.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/identity/identity_actions.go b/identity/identity_actions.go
index 21ce3fa6..b58bb2d9 100644
--- a/identity/identity_actions.go
+++ b/identity/identity_actions.go
@@ -13,19 +13,12 @@ import (
// Fetch retrieve updates from a remote
// This does not change the local identities state
func Fetch(repo repository.Repo, remote string) (string, error) {
- // "refs/identities/*:refs/remotes/<remote>/identities/*"
- remoteRefSpec := fmt.Sprintf(identityRemoteRefPattern, remote)
- fetchRefSpec := fmt.Sprintf("%s*:%s*", identityRefPattern, remoteRefSpec)
-
- return repo.FetchRefs(remote, fetchRefSpec)
+ return repo.FetchRefs(remote, "identities")
}
// Push update a remote with the local changes
func Push(repo repository.Repo, remote string) (string, error) {
- // "refs/identities/*:refs/identities/*"
- refspec := fmt.Sprintf("%s*:%s*", identityRefPattern, identityRefPattern)
-
- return repo.PushRefs(remote, refspec)
+ return repo.PushRefs(remote, "identities")
}
// Pull will do a Fetch + MergeAll