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

[BUG] git --work-tree=... status

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Aug 12, 2007, 18:58 UTC
Message-ID
<20070812185855.GA16704@informatik.uni-freiburg.de>
Hello,

I don't have time now to look into it, so for now as usual just a report. If nobody takes it, I will do it later.

	zeisberg@cassiopeia:~/gsrc/git$ git version
	git version 1.5.3.rc4.887.gd56871c

[That's Junio's next + my doc change "checkout-index doc: use --work-dir in the export example"]

	zeisberg@cassiopeia:~/gsrc/git$ mkdir export
	zeisberg@cassiopeia:~/gsrc/git$ git --work-tree=export checkout-index -a
	zeisberg@cassiopeia:~/gsrc/git$ git --work-tree=export status
	fatal: /home/zeisberg/usr/bin/git-status cannot be used without a working tree.
runstatus works as expected (at least after some thought):
	zeisberg@cassiopeia:~/gsrc/git$ git --work-tree=export runstatus | head
	# On branch next
	# Changed but not updated:
	#   (use "git add <file>..." to update what will be committed)
	#
	#       modified:   .gitignore
	#       modified:   .mailmap
	#       modified:   COPYING
	#       modified:   Documentation/.gitignore
	#       modified:   Documentation/Makefile
	#       modified:   Documentation/RelNotes-1.5.0.1.txt

The problem seems to be that require_work_tree demands more that I think it should. It calls `git rev-parse --is-inside-work-tree`.

Best regards Uwe

-- 
Uwe Kleine-König

http://www.google.com/search?q=1+newton+in+kg*m+%2F+s%5E2
Next: Junio C Hamano
Message 1 of 3 in “[BUG] git --work-tree=... status”
  1. Uwe Kleine-KönigAug 12, 2007
  2. Junio C HamanoAug 12, 2007
  3. Uwe Kleine-KönigAug 17, 2007

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.