From 46ce819ff675e1138d6f5d777160d841a4203b5f Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Tue, 12 Dec 2017 20:08:30 +0100 Subject: [PATCH] hashutil: add `snapshot` object type for git hashes --- swh/model/hashutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swh/model/hashutil.py b/swh/model/hashutil.py index 4d6f9dba..864d043f 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' % -- GitLab