diff --git a/swh/model/hashutil.py b/swh/model/hashutil.py --- a/swh/model/hashutil.py +++ b/swh/model/hashutil.py @@ -198,7 +198,7 @@ ValueError if the git_type is unexpected. """ - git_object_types = {'blob', 'tree', 'commit', 'tag'} + git_object_types = {'blob', 'tree', 'commit', 'tag', 'snapshot'} if git_type not in git_object_types: raise ValueError('Unexpected git object type %s, expected one of %s' %