File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- $Format:%h $
1
+ $Format:%H $
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ YOSYS_VER := 0.43+3
150
150
# will have this file in its unexpanded form tough, in which case we fall
151
151
# back to calling git directly.
152
152
TARBALL_GIT_REV := $(shell cat $(YOSYS_SRC ) /.gitcommit)
153
- ifeq ($(TARBALL_GIT_REV ) ,$$ Format :% h$$ )
153
+ ifneq ($(findstring " Format :", $( TARBALL_GIT_REV ) ), )
154
154
GIT_REV := $(shell GIT_DIR=$(YOSYS_SRC ) /.git git rev-parse --short=9 HEAD || echo UNKNOWN)
155
155
else
156
156
GIT_REV := $(TARBALL_GIT_REV )
@@ -773,10 +773,10 @@ check-git-abc:
773
773
exit 1; \
774
774
elif git -C " $( YOSYS_SRC) " submodule status abc 2> /dev/null | grep -q ' ^ ' ; then \
775
775
exit 0; \
776
- elif [ -f " $( YOSYS_SRC) /abc/.gitcommit" ] && ! grep -q ' \$$Format:%h \$$' " $( YOSYS_SRC) /abc/.gitcommit" ; then \
776
+ elif [ -f " $( YOSYS_SRC) /abc/.gitcommit" ] && ! grep -q ' \$$Format:%[hH] \$$' " $( YOSYS_SRC) /abc/.gitcommit" ; then \
777
777
echo " 'abc' comes from a tarball. Continuing." ; \
778
778
exit 0; \
779
- elif [ -f " $( YOSYS_SRC) /abc/.gitcommit" ] && grep -q ' \$$Format:%h \$$' " $( YOSYS_SRC) /abc/.gitcommit" ; then \
779
+ elif [ -f " $( YOSYS_SRC) /abc/.gitcommit" ] && grep -q ' \$$Format:%[hH] \$$' " $( YOSYS_SRC) /abc/.gitcommit" ; then \
780
780
echo " Error: 'abc' is not configured as a git submodule." ; \
781
781
echo " To resolve this:" ; \
782
782
echo " 1. Back up your changes: Save any modifications from the 'abc' directory to another location." ; \
You can’t perform that action at this time.
0 commit comments