git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* $GIT_DIR usage
@ 2007-08-05  9:58 Dan Zwell
  2007-08-05 11:55 ` Dmitry Kakurin
  2007-08-05 12:33 ` Johannes Schindelin
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Zwell @ 2007-08-05  9:58 UTC (permalink / raw)
  To: git

Hi, I had a question about $GIT_DIR. That is to say, it doesn't seem to 
work. I am using Git 1.5.2.4. See the following: (all the commands I 
tried besides "git-init" failed).

$ export GIT_DIR="`pwd`/.git_public"
$ git init
warning: templates not found /usr/share//git-core/templates/
Initialized empty Git repository in /home/user/temp/.git_public/
$ echo > new_file
$ git add new_file
fatal: add must be run in a work tree
$ git commit -a
fatal: /usr/bin/git-commit cannot be used without a working tree.
$ git commit
fatal: /usr/bin/git-commit cannot be used without a working tree.
$

Is $GIT_DIR not meant to be used this way? Does it have a different 
purpose / use case, or is this just a bug?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-05 13:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-05  9:58 $GIT_DIR usage Dan Zwell
2007-08-05 11:55 ` Dmitry Kakurin
2007-08-05 12:22   ` Dan Zwell
2007-08-05 12:33 ` Johannes Schindelin
2007-08-05 13:02   ` Dan Zwell
2007-08-05 13:41     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).