diff --git a/swh/model/hashutil.py b/swh/model/hashutil.py index 4d6f9dba2088d6a0ceb8e489fe1587ba53c69d0c..864d043fb924394c1337f46a76a0211aea389cf7 100644 --- a/swh/model/hashutil.py +++ b/swh/model/hashutil.py @@ -198,7 +198,7 @@ def hash_git_data(data, git_type, base_algo='sha1'): 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' %