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

* Re: checkout detached work tree
  2008-03-18 23:32 checkout detached work tree Jörg Sommer
@ 2008-03-20 15:01 ` Nguyen Thai Ngoc Duy
  0 siblings, 0 replies; 2+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2008-03-20 15:01 UTC (permalink / raw)
  To: Jörg Sommer; +Cc: git

On Wed, Mar 19, 2008 at 6:32 AM, Jörg Sommer <joerg@alea.gnuu.de> wrote:
> 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?

Works well here with version 1.5.4.2.281.g28d0e. What version were you using?
-- 
Duy

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