summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pylint/testutils/_primer/primer_prepare_command.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pylint/testutils/_primer/primer_prepare_command.py b/pylint/testutils/_primer/primer_prepare_command.py
index c8c562a84..27e216bd5 100644
--- a/pylint/testutils/_primer/primer_prepare_command.py
+++ b/pylint/testutils/_primer/primer_prepare_command.py
@@ -15,16 +15,17 @@ class PrepareCommand(PrimerCommand):
def run(self) -> None:
commit_string = ""
version_string = ".".join(str(x) for x in sys.version_info[:2])
+ # Shorten the SHA to avoid exceeding GitHub's 512 char ceiling
if self.config.clone:
for package, data in self.packages.items():
local_commit = data.lazy_clone()
print(f"Cloned '{package}' at commit '{local_commit}'.")
- commit_string += local_commit + "_"
+ commit_string += local_commit[:8] + "_"
elif self.config.check:
for package, data in self.packages.items():
local_commit = Repo(data.clone_directory).head.object.hexsha
print(f"Found '{package}' at commit '{local_commit}'.")
- commit_string += local_commit + "_"
+ commit_string += local_commit[:8] + "_"
elif self.config.make_commit_string:
for package, data in self.packages.items():
remote_sha1_commit = (