git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* checkout detached work tree
@ 2008-03-18 23:32 Jörg Sommer
  2008-03-20 15:01 ` Nguyen Thai Ngoc Duy
  0 siblings, 1 reply; 2+ messages in thread
From: Jörg Sommer @ 2008-03-18 23:32 UTC (permalink / raw)
  To: git

Hi,

is it correct that this checkout fails?

% git --git-dir=$HOME/git/git/.git --work-tree=/tmp/git symbolic-ref HEAD
refs/heads/master
% git --git-dir=$HOME/git/git/.git --work-tree=/tmp/git checkout
fatal: /usr/bin/git-checkout cannot be used without a working tree.

I want to do a checkout in a script without need to worry about the
current working directory. But it seams this is not possible. Many
commands fail. Is this behaviour expected?

Bye, Jörg.
-- 
Als deutscher Tourist im Ausland steht man vor der Frage, ob man sich
anständig benehmen muss oder ob schon deutsche Touristen dagewesen sind.
	  	   	     	      	        (Kurt Tucholsky)

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

end of thread, other threads:[~2008-03-20 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18 23:32 checkout detached work tree Jörg Sommer
2008-03-20 15:01 ` Nguyen Thai Ngoc Duy

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).