git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git rebase does not understand --work-tree
@ 2010-07-14  9:04 Alexander Gladysh
  2010-07-14 12:54 ` Michael J Gruber
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Gladysh @ 2010-07-14  9:04 UTC (permalink / raw)
  To: git

Hi, list!

$ git --version
git version 1.7.1.1

I often use --work-tree and --git-dir to avoid doing cd in my scripts.

However, I've found that git rebase does not understand --work-tree
option (see test below). Is this fixable?

Thanks,
Alexander.

mkdir tmp
cd tmp
git init
echo "test">file.txt
git add .
git commit -m "initial commit"

git checkout -b other-branch
echo "test2">otherfile.txt
git add .
git commit -m "second commit"

cd ..
git --git-dir=tmp/.git --work-tree=tmp rebase other-branch

fatal: /usr/local/libexec/git-core/git-rebase cannot be used without a
working tree.

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

end of thread, other threads:[~2010-07-14 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14  9:04 git rebase does not understand --work-tree Alexander Gladysh
2010-07-14 12:54 ` Michael J Gruber
2010-07-14 12:55   ` [RFC/PATCH] am/pull/rebase/stash: cd_to_toplevel before require_work_tree Michael J Gruber

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