git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Makefile: Use the same source directory for "ln -s" as for "ln" / "cp"

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Feb 5, 2015, 15:51 UTC
Message-ID
<CAHGBnuOGv4Zn7dz6voEMn=PtMfm=0TQumt9PxV9nYgXyB0Xj=g@mail.gmail.com>

For consistency, we should use the same source for symbolic links as for hard links and copies.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index c44eb3a..21f23cb 100644
--- a/Makefile
+++ b/Makefile
@@ -2265,14 +2265,14 @@ endif
         $(RM) "$$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 || \
+        ln -s "$$bindir/git$X" "$$bindir/$$p" 2>/dev/null || \
         cp "$$bindir/git$X" "$$bindir/$$p" || exit; \
     done && \
     for p in $(BUILT_INS); do \
         $(RM) "$$execdir/$$p" && \
         test -z "$(NO_INSTALL_HARDLINKS)" && \
         ln "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
-        ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
+        ln -s "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
         cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
     done && \
     remote_curl_aliases="$(REMOTE_CURL_ALIASES)" && \
@@ -2280,7 +2280,7 @@ endif
         $(RM) "$$execdir/$$p" && \
         test -z "$(NO_INSTALL_HARDLINKS)" && \
         ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
-        ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
+        ln -s "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
         cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \
     done && \
     ./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
-- 
2.1.2-mingw-1
Next: Kyle J. McKay
Message 1 of 11 in “Makefile: Use the same source directory for "ln -s" as for "ln" / "cp"”
  1. 1/2 Makefile: Use the same source directory for "ln -s" as for "ln" / "cp"Sebastian Schuberth, Feb 5, 2015
  2. Kyle J. McKayFeb 5, 2015
  3. Junio C HamanoFeb 5, 2015
  4. Sebastian SchuberthFeb 5, 2015
  5. Jeff KingFeb 5, 2015
  6. Sebastian SchuberthFeb 5, 2015
  7. Jeff KingFeb 5, 2015
  8. Sebastian SchuberthFeb 5, 2015
  9. Kyle J. McKayFeb 5, 2015
  10. Junio C HamanoFeb 5, 2015
  11. Kyle J. McKayFeb 5, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.