checkout detached work tree
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.
Signature · 3 lines
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)
Quoted 4 lines · Jörg Sommer
Hi,
is it correct that this checkout fails?
Quoted 8 lines
% 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-checkoutcannot 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?
Signature · 1 line
Duy