All of lore.kernel.org
 help / color / mirror / Atom feed
* rebase not honoring core.worktree pointing elsewhere
@ 2010-11-01 17:22 Paul Drews
  2010-11-01 17:38 ` Sverre Rabbelier
  2010-11-02  0:11 ` Nguyen Thai Ngoc Duy
  0 siblings, 2 replies; 10+ messages in thread
From: Paul Drews @ 2010-11-01 17:22 UTC (permalink / raw)
  To: git

Hello,

I'm observing an unexpected error from "git rebase" run from the directory
containing the ".git" directory:

$ git --version

git version 1.7.3.GIT
(includes up to commit ca2090 from git repository at
http://www.kernel.org/pub/scm/git/git.git)

$ mkdir wherefilesare
$ mkdir wheregitis
$ cd wherefilesare
$ echo "Here is a line from the original" > myfile.txt
$ cd ../wheregitis
$ git init
$ git config core.worktree /absolute/path/to/wherefilesare/
$ git add .
$ git commit
$ git branch mybranch
$ git checkout mybranch
$ vim ../wherefilesare/myfile.txt 
$ git add .
$ git commit
$ git checkout master
$ vim ../wherefilesare/myfile.txt 
$ git add .
$ git commit
$ git checkout mybranch
$ git rebase master

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

Since I'm in the directory containing ".git" at this point, the ".git" directory
and the worktree can be unambiguously found.  Other commands besides "git
rebase" work.  I would expect "git rebase" to work as well.  Is this a bug or an
unreasonable expectation on my part?

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

end of thread, other threads:[~2010-11-04 14:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-01 17:22 rebase not honoring core.worktree pointing elsewhere Paul Drews
2010-11-01 17:38 ` Sverre Rabbelier
2010-11-02  0:11 ` Nguyen Thai Ngoc Duy
2010-11-02  1:21   ` Junio C Hamano
2010-11-02 16:26   ` Paul Drews
2010-11-03  0:13     ` Nguyen Thai Ngoc Duy
2010-11-03 15:41       ` Paul Drews
2010-11-03 15:52         ` Nguyen Thai Ngoc Duy
2010-11-03 16:13         ` Jonathan Nieder
2010-11-04 14:20           ` Nguyen Thai Ngoc Duy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.