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

[PATCH] contrib/git-subtree: Use /bin/sh interpreter instead of /bin/bash

From
Dmitry Marakasov <amdmi3@amdmi3.ru>
Date
May 20, 2013, 20:24 UTC
Message-ID
<20130520202434.GA3151@hades.panopticon>

Use /bin/sh interpreter instead of /bin/bash for contrib/git-subtree: it's required for systems which don't use bash by default (for example, FreeBSD), while there seem to be no bashisms in the script (confirmed by looking through the source and tesing subtree functionality with FreeBSD's /bin/sh) to require specifically bash and not the generic posix shell.

Signed-off-by: Dmitry Marakasov <amdmi3@amdmi3.ru>
---
 contrib/subtree/git-subtree.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 8a23f58..5701376 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # git-subtree.sh: split/join git repositories in subdirectories of this one
 #
-- 
1.8.2.3
Next: Junio C Hamano
Message 1 of 3 in “contrib/git-subtree: Use /bin/sh interpreter instead of /bin/bash”
  1. contrib/git-subtree: Use /bin/sh interpreter instead of /bin/bashDmitry Marakasov, May 20, 2013
  2. Junio C HamanoMay 20, 2013
  3. John KeepingMay 21, 2013

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.