diff --git a/src/gardenlinux/features/artifact_base_name.py b/src/gardenlinux/features/artifact_base_name.py index 00fa9eaf..4a0f2b42 100644 --- a/src/gardenlinux/features/artifact_base_name.py +++ b/src/gardenlinux/features/artifact_base_name.py @@ -436,7 +436,7 @@ def new_instance( if commit_id_or_hash: if abn_object.commit_hash and abn_object.commit_hash != commit_id_or_hash: raise RuntimeError("Commit hash does not match the given argument") - elif abn_object.commit_id != commit_id_or_hash: + elif abn_object.commit_id != commit_id_or_hash[:8]: raise RuntimeError("Commit ID does not match the given argument") return abn_object