Skip to content

Commit e1b05db

Browse files
[primer] Shorten commit string
1 parent 66c9052 commit e1b05db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/testutils/_primer/primer_prepare_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def run(self) -> None:
2828
elif self.config.make_commit_string:
2929
for package, data in self.packages.items():
3030
remote_sha1_commit = (
31-
Git().ls_remote(data.url, data.branch).split("\t")[0]
31+
Git().ls_remote(data.url, data.branch).split("\t")[0][:8]
3232
)
3333
print(f"'{package}' remote is at commit '{remote_sha1_commit}'.")
3434
commit_string += remote_sha1_commit + "_"

0 commit comments

Comments
 (0)