mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 19:57:36 +00:00
SCP: Add git commit time support for older git versions
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
#
|
||||
# A hook script that is called after a successful
|
||||
# commit is made to record the commit-id in the working directory.
|
||||
git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME %aI" >.git-commit-id
|
||||
isodate=$(git log -1 --pretty="%ai"|sed -e 's/ /T/'|sed -e 's/ //')
|
||||
git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME $isodate" >.git-commit-id
|
||||
|
||||
Reference in New Issue
Block a user