Skip to content
Snippets Groups Projects
Commit 4a742055 authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

swh identify -t snapshot: add support for symbolic refs

parent b2c21d32
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment