Skip to content

Commit c90d114

Browse files
brsongraydon
authored andcommitted
Use git log pretty printing arguments that are compatible with older versions of git
1 parent 73fd87b commit c90d114

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: rust.pdf rust.html
44

55
version.texi: Makefile rust.texi
66
git log -1 \
7-
--format='@macro gitversion%n%h %ci%n@end macro%n' >$@
7+
--pretty=format:'@macro gitversion%n%h %ci%n@end macro%n' >$@
88

99
%.pdf: %.texi version.texi
1010
texi2pdf $<

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ all: $(CFG_RUSTC) $(MKFILES) $(GENERATED)
297297

298298
boot/util/version.ml: Makefile
299299
$(CFG_QUIET)git log -1 \
300-
--format='let version = "prerelease (%h %ci)";;' >$@ || exit 1
300+
--pretty=format:'let version = "prerelease (%h %ci)";;' >$@ || exit 1
301301

302302
loc:
303303
$(CFG_QUIET)wc -l $(BOOT_MLS) $(RUNTIME_CS) $(RUNTIME_HDR)

0 commit comments

Comments
 (0)