Skip to content

Commit bb94457

Browse files
thegreatyamoristsewd
authored andcommitted
slice the first 8 digits
1 parent e39880c commit bb94457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,8 @@
997997
def get_last_commit():
998998
encoding = 'utf-8'
999999
command = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True)
1000-
return command.stdout.decode(encoding)
1000+
last_hash = command.stdout.decode(encoding)
1001+
return last_hash[0:8]
10011002

10021003
CONTENT_FOOTER_FORMATS = {
10031004
DEFAULT_LANG: (

0 commit comments

Comments
 (0)