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

Git global usage and tests

From
RGRomain Geissler <romain.geissler@gmail.com>
Date
May 30, 2011, 14:58 UTC
Message-ID
<754E784F-51C6-4B8D-B15D-3FF8B7AF1321@gmail.com>
Hello,
We are currently coding a minimal git client using libgit2, and as quoted by David Glesser in another mail, we use the git test base on our client to validate it. We found a test that tries to run git with a specified --git-dir but don't use the way it's described in the help.
Indeed the test t2050-git-dir-relative.sh run :

echo changed >top && git --git-dir subdir/.git add top && git --git-dir subdir/.git commit -m topcommit && test -r "${COMMIT_FILE}"

But according to the git help, it should have specified a git-dir with --git-dir=value ie git --git-dir=subdir/.git add top

Am i wrong or the test must be rewritten ?
Romain Geissler
Next: Jeff King
Message 1 of 9 in “Git global usage and tests”
  1. Romain GeisslerMay 30, 2011
  2. Jeff KingMay 30, 2011
  3. Romain GeisslerMay 30, 2011
  4. Jeff KingMay 30, 2011
  5. Miles BaderMay 31, 2011
  6. Carlos Martín NietoMay 31, 2011
  7. Junio C HamanoMay 31, 2011
  8. Ævar Arnfjörð BjarmasonMay 31, 2011
  9. Jeff KingMay 31, 2011

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.