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

[PATCH 2/2] t/lib-*.sh: drop executable bit

From
Jeff King <peff@peff.net>
Date
Mar 26, 2020, 08:25 UTC
Message-ID
<20200326082553.GB3611762@coredump.intra.peff.net>
In-Reply-To
<20200326082338.GA3611364@coredump.intra.peff.net>

There's no need for shell libraries to have the executable bit. They're meant to be sourced, and running them stand-alone is pointless. Let's reduce any possible confusion by making it more clear they're not meant to be run this way.

Signed-off-by: Jeff King <peff@peff.net>
---
 t/lib-credential.sh       | 0
 t/lib-gpg.sh              | 0
 t/lib-log-graph.sh        | 0
 t/lib-submodule-update.sh | 0
 4 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100755 => 100644 t/lib-credential.sh
 mode change 100755 => 100644 t/lib-gpg.sh
 mode change 100755 => 100644 t/lib-log-graph.sh
 mode change 100755 => 100644 t/lib-submodule-update.sh
diff --git a/t/lib-credential.sh b/t/lib-credential.sh
old mode 100755
new mode 100644
diff --git a/t/lib-gpg.sh b/t/lib-gpg.sh
old mode 100755
new mode 100644
diff --git a/t/lib-log-graph.sh b/t/lib-log-graph.sh
old mode 100755
new mode 100644
diff --git a/t/lib-submodule-update.sh b/t/lib-submodule-update.sh
old mode 100755
new mode 100644
-- 
2.26.0.576.gb87790c3c1
Previous: Denton Liu
Message 4 of 4 in “test shell-library cleanups”
  1. 0/2 test shell-library cleanupsJeff King, Mar 26, 2020
  2. 1/2 t/lib-credential.sh: drop shebang lineJeff King, Mar 26, 2020
  3. Denton LiuMar 26, 2020
  4. 2/2 t/lib-*.sh: drop executable bitJeff King, Mar 26, 2020

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.