mirror of
https://github.com/git/git.git
synced 2026-02-15 04:17:44 +00:00
Windows resource: handle dashes in the Git version gracefully
Reported by postiffm as issue #14. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Pat Thoyts
parent
6c821cb16a
commit
eb1efa341e
2
Makefile
2
Makefile
@@ -2213,7 +2213,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
|
||||
|
||||
git.res: git.rc
|
||||
$(QUIET_RC)$(RC) \
|
||||
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst ., ,$(GIT_VERSION)))) \
|
||||
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
|
||||
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@
|
||||
|
||||
ifndef NO_PERL
|
||||
|
||||
Reference in New Issue
Block a user