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

Possible bug in 1.6.6 with reset --hard and $GIT_WORK_TREE

From
FFFyn Fynn <fynfynn@gmail.com>
Date
Dec 29, 2009, 06:47 UTC
Message-ID
<1a04eebf0912282247p6975a96el8076cb39378bd104@mail.gmail.com>

The exact same git reset command that works in 1.6.4, fails to work under 1.6.6:

$ GIT_WORK_TREE=$HOME/rawdata/ GIT_DIR=$HOME/rawdata/.git /usr/local/git-1.6.6/bin/git reset --hard fatal: hard reset requires a work tree $ GIT_WORK_TREE=$HOME/rawdata/ GIT_DIR=$HOME/rawdata/.git /usr/local/git-1.6.4/bin/git reset --hard HEAD is now at 77ec73f...

What gives?
Next: Tay Ray Chuan
Message 1 of 9 in “Possible bug in 1.6.6 with reset --hard and $GIT_WORK_TREE”
  1. Fyn FynnDec 29, 2009
  2. Tay Ray ChuanDec 29, 2009
  3. Nguyen Thai Ngoc DuyDec 29, 2009
  4. Nanako ShiraishiDec 29, 2009
  5. Nguyen Thai Ngoc DuyDec 29, 2009
  6. Fyn FynnDec 29, 2009
  7. Jeff KingDec 29, 2009
  8. reset: unbreak hard resets with GIT_WORK_TREEJeff King, Dec 30, 2009
  9. Junio C HamanoDec 30, 2009

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.