diff --git a/swh/model/cli.py b/swh/model/cli.py index 991bc46ec72bf9657d7db9965b33e08ab83ff29d..ec33310b05722dc1fe1325e3bcb489737a42547a 100644 --- a/swh/model/cli.py +++ b/swh/model/cli.py @@ -69,6 +69,13 @@ def pid_of_git_repo(path): } else: branches[ref] = None + + for ref, target in repo.refs.get_symrefs().items(): + branches[ref] = { + 'target': target, + 'target_type': 'alias', + } + snapshot = {'branches': branches} pid = pids.PersistentId(object_type='snapshot',