mirror of
https://github.com/simh/simh.git
synced 2026-01-14 15:45:18 +00:00
8 lines
281 B
Bash
Executable File
8 lines
281 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# A hook script that is called after a successful
|
|
# checkout to record the commit-id in the working directory.
|
|
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
|
|
|