diff --git a/swh/model/cli.py b/swh/model/cli.py --- a/swh/model/cli.py +++ b/swh/model/cli.py @@ -69,6 +69,13 @@ } 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',