aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag/entity_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 /entity/dag/entity_actions.go
parentfe4237df3c62bd6dfd1f385893295f93072d0e51 (diff)
downloadgit-bug-e35c7c4d170d1b682992c95f1c14772158501015.tar.gz
entity: more testing and bug fixing
Diffstat (limited to 'entity/dag/entity_actions.go')
-rw-r--r--entity/dag/entity_actions.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/entity/dag/entity_actions.go b/entity/dag/entity_actions.go
index db3a545c..edc47d52 100644
--- a/entity/dag/entity_actions.go
+++ b/entity/dag/entity_actions.go
@@ -21,20 +21,12 @@ func ListLocalIds(def Definition, repo repository.RepoData) ([]entity.Id, error)
// Fetch retrieve updates from a remote
// This does not change the local entity state
func Fetch(def Definition, repo repository.Repo, remote string) (string, error) {
- // "refs/<entity>/*:refs/remotes/<remote>/<entity>/*"
- fetchRefSpec := fmt.Sprintf("refs/%s/*:refs/remotes/%s/%s/*",
- def.namespace, remote, def.namespace)
-
- return repo.FetchRefs(remote, fetchRefSpec)
+ return repo.FetchRefs(remote, def.namespace)
}
// Push update a remote with the local changes
func Push(def Definition, repo repository.Repo, remote string) (string, error) {
- // "refs/<entity>/*:refs/<entity>/*"
- refspec := fmt.Sprintf("refs/%s/*:refs/%s/*",
- def.namespace, def.namespace)
-
- return repo.PushRefs(remote, refspec)
+ return repo.PushRefs(remote, def.namespace)
}
// Pull will do a Fetch + MergeAll