Skip to content

Commit 93d4555

Browse files
committed
Fix commit ID validation in gardenlinux.features.ArtifactBaseName
Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent 3888479 commit 93d4555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gardenlinux/features/artifact_base_name.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def new_instance(
436436
if commit_id_or_hash:
437437
if abn_object.commit_hash and abn_object.commit_hash != commit_id_or_hash:
438438
raise RuntimeError("Commit hash does not match the given argument")
439-
elif abn_object.commit_id != commit_id_or_hash:
439+
elif abn_object.commit_id != commit_id_or_hash[:8]:
440440
raise RuntimeError("Commit ID does not match the given argument")
441441

442442
return abn_object

0 commit comments

Comments
 (0)