diff options
author | Egor Tensin <egor@tensin.name> | 2025-09-09 22:08:18 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-09-09 22:08:18 +0200 |
commit | 40d663a7c4e44bc30eebf2521bd8f8d78dda3a1c (patch) | |
tree | 50fb08df787c559d5b005f1390b20dcb8ed1ab55 | |
parent | add more things to .gitignore (diff) | |
download | jekyll-theme-40d663a7c4e44bc30eebf2521bd8f8d78dda3a1c.tar.gz jekyll-theme-40d663a7c4e44bc30eebf2521bd8f8d78dda3a1c.zip |
Makefile: print maintenance commit hash
Diffstat (limited to '')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -21,12 +21,13 @@ maintenance: ruby @git_status="$$( git status --porcelain=v1 )" && \ if [ -z "$$git_status" ]; then \ - true ; \ + true; \ elif [ "$$git_status" = ' M Gemfile.lock' ]; then \ git commit -am 'bump dependencies' && \ - git push -q ; \ + git push -q && \ + git rev-parse HEAD; \ else \ - echo ; \ + echo; \ echo '-----------------------------------------------------------------'; \ echo 'Error: unrecognized modifications in the repository:'; \ echo "$$git_status"; \ |