Skip to content

Commit 61aec34

Browse files
committed
Use short hash in commit created by make publish.
1 parent a9c781f commit 61aec34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/manual/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ doctest:
157157
GITREPOPATH = $(shell cd $(CURDIR) && git rev-parse --git-dir)
158158
GITREMOTE = origin
159159
GITREMOTEURL = $(shell git config --get remote.$(GITREMOTE).url)
160-
GITLASTCOMMIT = $(shell git rev-parse HEAD)
160+
GITLASTCOMMIT = $(shell git --short rev-parse HEAD)
161161

162162
publish:
163163
@test -d build/html || \
@@ -174,6 +174,6 @@ publish:
174174
cd build/gh-pages && \
175175
git add --all . && \
176176
git diff --cached --quiet || \
177-
git commit -m "Synced with the source at $(GITLASTCOMMIT)."
177+
git commit -m "Sync with the source at $(GITLASTCOMMIT)."
178178
cd build/gh-pages && \
179179
git push origin gh-pages

0 commit comments

Comments
 (0)