mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Implement manifest header and improve GitHelper
This commit is contained in:
@@ -9,6 +9,10 @@ class GitHelper:
|
||||
def commit_hash():
|
||||
return git["rev-parse", "HEAD"]().strip()
|
||||
|
||||
@staticmethod
|
||||
def commit_hash_tag():
|
||||
return GitHelper.commit_hash()[:12]
|
||||
|
||||
@staticmethod
|
||||
def commit_message():
|
||||
return git["log", -1, "--pretty=%B"]().strip()
|
||||
|
Reference in New Issue
Block a user