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

Re: [PATCH] test-lib: set GIT_CEILING_DIRECTORIES to protect the surrounding repository

From
Carlo Arenas <carenas@gmail.com>
Date
Aug 28, 2021, 19:56 UTC
Message-ID
<CAPUEspg43gxRiVydtaYdM06ObQGYUVn6oThjg1VTR+EfsxRVjA@mail.gmail.com>
In-Reply-To
<20210828121329.1971762-1-szeder.dev@gmail.com>
On Sat, Aug 28, 2021 at 5:15 AM SZEDER Gábor <szeder.dev@gmail.com> wrote:
Show 10 quoted lines
> diff --git a/t/test-lib.sh b/t/test-lib.sh
> index abcfbed6d6..a1e0182c2f 100644
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -1343,7 +1343,8 @@ fi
>  GIT_TEMPLATE_DIR="$GIT_BUILD_DIR"/templates/blt
>  GIT_CONFIG_NOSYSTEM=1
>  GIT_ATTR_NOSYSTEM=1
> -export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM GIT_ATTR_NOSYSTEM
> +GIT_CEILING_DIRECTORIES="$GIT_BUILD_DIR"

this wouldn't work as expected with --root and would be IMHO safer anyway if using instead

  GIT_CEILING_DIRECTORIES="$TRASH_DIRECTORY/.."
Carlo
Previous: SZEDER GáborNext: SZEDER Gábor
Message 2 of 6 in “test-lib: set GIT_CEILING_DIRECTORIES to protect the surrounding repository”
  1. test-lib: set GIT_CEILING_DIRECTORIES to protect the surrounding repositorySZEDER Gábor, Aug 28, 2021
  2. Carlo ArenasAug 28, 2021
  3. SZEDER GáborAug 29, 2021
  4. test-lib: set GIT_CEILING_DIRECTORIES to protect the surrounding repositorySZEDER Gábor, Aug 29, 2021
  5. Ævar Arnfjörð BjarmasonAug 31, 2021
  6. SZEDER GáborSep 1, 2021

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.