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

Re: git commands that only work correctly at top directory

From
TKThomas Kolejka <thomas.kolejka@gmx.at>
Date
Sep 22, 2006, 17:08 UTC
Message-ID
<20060922170859.119780@gmx.net>
In-Reply-To
<fcaeb9bf0609220221w3a65af24u9db1da4e1be0d1eb@mail.gmail.com>
-------- Original-Nachricht --------
Datum: Fri, 22 Sep 2006 16:21:09 +0700
Von: "Nguyen Thai Ngoc Duy" <pclouds@gmail.com>
An: git@vger.kernel.org
Betreff: git commands that only work correctly at top directory
Did you set $GIT_DIR? ... to an absolute path or "./.git" ?
> Here is the list (checks are done in with 1.4.2.rc4):
> count-objects (always 0 objects, 0 kilobytes)
Works for me in every directory with GIT_DIR abolute or ./.git
> bisect (fatal: Not a git repository: '.git'. Bad HEAD - I need a symbolic
> ref)
with an absolute GIT_DIR works from every directory - at least bisect start
> describe (fatal: Not a valid object name HEAD)

with an absolute GIT_DIR works from every directory. v1.4.1-gcddb939

Show 13 quoted lines
> repack (line 42: cd: .git/objects/pack: No such file or directory. And
> it creates a new .git directory in current directory)
> git format-patch in subdir generates files in topdir instead of
> current dir as documented in its man page
> 
> BTW, either git blame or git annotate should be available in git help's
> listing.
> git format-patch with no argument shows nothing. It should show help
> usage instead.
> I might miss some commands because I only tested commands I'm familiar
> with.
> -- 
> Duy
Thomas
-- 
NEU: GMX DSL Sofort-Start-Set - blitzschnell ins Internet!
Echte DSL-Flatrate ab 0,- Euro* http://www.gmx.net/de/go/dsl
Previous: Jeff KingNext: Jeff King
Message 10 of 12 in “git commands that only work correctly at top directory”
  1. Nguyen Thai Ngoc DuySep 22, 2006
  2. format-patch: use cwd as default output directoryMatthias Lederhofer, Sep 22, 2006
  3. Nguyen Thai Ngoc DuySep 28, 2006
  4. Junio C HamanoSep 28, 2006
  5. git-format-patch: fix bug using -o in subdirectoriesMatthias Lederhofer, Sep 28, 2006
  6. Matthias LederhoferSep 22, 2006
  7. Nguyen Thai Ngoc DuySep 22, 2006
  8. Petr BaudisSep 23, 2006
  9. git-repack: allow git-repack to run in subdirectoryJeff King, Sep 22, 2006
  10. Thomas KolejkaSep 22, 2006
  11. git-repack: allow git-repack to run in subdirectoryJeff King, Sep 25, 2006
  12. Junio C HamanoSep 25, 2006

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.