git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nguyen Thai Ngoc Duy" <pclouds@gmail.com>
To: "Jörg Sommer" <joerg@alea.gnuu.de>
Cc: git@vger.kernel.org
Subject: Re: checkout detached work tree
Date: Thu, 20 Mar 2008 22:01:55 +0700	[thread overview]
Message-ID: <fcaeb9bf0803200801y45255591t5c0e9505399cbb30@mail.gmail.com> (raw)
In-Reply-To: <slrnfu0k9d.kfv.joerg@alea.gnuu.de>

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

      reply	other threads:[~2008-03-20 15:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-18 23:32 checkout detached work tree Jörg Sommer
2008-03-20 15:01 ` Nguyen Thai Ngoc Duy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fcaeb9bf0803200801y45255591t5c0e9505399cbb30@mail.gmail.com \
    --to=pclouds@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=joerg@alea.gnuu.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).