1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

force 10 chars SHA1 display.

`make update-src` shows latest commit hash for convinience.
However, `rev-parse --short` option shows different length
(maybe) between git versions. This fix force 10 chars
with `--short=10`.
This commit is contained in:
Koichi Sasada 2019-04-24 09:30:07 +09:00
parent 19d454a957
commit 2ef6673708

View file

@ -217,5 +217,5 @@ clean-srcs-extra::
ifneq ($(filter $(VCS),git),)
update-src::
@$(BASERUBY) $(srcdir)/tool/colorize.rb pass "Latest commit hash = $(shell $(filter-out svn,$(VCS)) -C $(srcdir) rev-parse --short HEAD)"
@$(BASERUBY) $(srcdir)/tool/colorize.rb pass "Latest commit hash = $(shell $(filter-out svn,$(VCS)) -C $(srcdir) rev-parse --short=10 HEAD)"
endif