short hash

This commit is contained in:
Pascal Vizeli 2017-04-27 23:18:05 +02:00
parent 645a8e2372
commit 0e258a4ae0

View File

@ -20,7 +20,7 @@ def slugify(text):
def get_hash_from_repository(repo):
"""Generate a hash from repository."""
key = repo.lower().encode()
return hashlib.sha1(key).hexdigest()
return hashlib.sha1(key).hexdigest()[:8]
def extract_hash_from_path(base_path, options_path):