]> git.ipfire.org Git - thirdparty/git.git/commitdiff
SKIP_DASHED_BUILT_INS: do not skip the bin/ programs
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 21 Oct 2020 15:13:31 +0000 (15:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Oct 2020 19:56:40 +0000 (12:56 -0700)
The idea of the `SKIP_DASHED_BUILT_INS` option is to stop hard-linking
the built-in commands as separate executables. The patches to do that
specifically excluded the three commands `receive-pack`,
`upload-archive` and `upload-pack`, though: these commands are expected
to be present in the `PATH` in their dashed form on the server side of
any fetch/push.

However, due to an oversight by myself, even if those commands were
still hard-linked, they were not installed into `bin/`.

Noticed-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile

index 6931ecd45e40c32ec122859d6e925081004c812a..065ca77c40ee795f431a27e517f61073208b72d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2981,15 +2981,12 @@ endif
        } && \
        for p in $(filter $(install_bindir_programs),$(BUILT_INS)); do \
                $(RM) "$$bindir/$$p" && \
-               if test -z "$(SKIP_DASHED_BUILT_INS)"; \
-               then \
-                       test -n "$(INSTALL_SYMLINKS)" && \
-                       ln -s "git$X" "$$bindir/$$p" || \
-                       { test -z "$(NO_INSTALL_HARDLINKS)" && \
-                         ln "$$bindir/git$X" "$$bindir/$$p" 2>/dev/null || \
-                         ln -s "git$X" "$$bindir/$$p" 2>/dev/null || \
-                         cp "$$bindir/git$X" "$$bindir/$$p" || exit; }; \
-               fi \
+               test -n "$(INSTALL_SYMLINKS)" && \
+               ln -s "git$X" "$$bindir/$$p" || \
+               { test -z "$(NO_INSTALL_HARDLINKS)" && \
+                 ln "$$bindir/git$X" "$$bindir/$$p" 2>/dev/null || \
+                 ln -s "git$X" "$$bindir/$$p" 2>/dev/null || \
+                 cp "$$bindir/git$X" "$$bindir/$$p" || exit; }; \
        done && \
        for p in $(BUILT_INS); do \
                $(RM) "$$execdir/$$p" && \