git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug? git worktree fails with master on bare repo
@ 2016-10-09  0:30 Michael Tutty
  2016-10-09  6:50 ` Kevin Daudt
  2016-10-09  7:51 ` Dennis Kaarsemaker
  0 siblings, 2 replies; 14+ messages in thread
From: Michael Tutty @ 2016-10-09  0:30 UTC (permalink / raw)
  To: git

Hey all,
I'm working on some server-side software to do a merge. By using git
worktree it's possible to check out a given branch for a bare repo and
merge another branch into it. It's very fast, even with large
repositories.

The only exception seems to be merging to master. When I do git
worktree add /tmp/path/to/worktree master I get an error:

[fatal: 'master' is already checked out at '/path/to/bare/repo']

But this is clearly not true, git worktree list gives:

[/path/to/bare/repo (bare)]

...and of course, there is no work tree at that path, just the bare
repo files you'd expect.

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

end of thread, other threads:[~2016-10-13 10:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-09  0:30 Bug? git worktree fails with master on bare repo Michael Tutty
2016-10-09  6:50 ` Kevin Daudt
2016-10-09  7:51 ` Dennis Kaarsemaker
2016-10-09 10:52   ` Duy Nguyen
2016-10-09 13:42     ` Michael Tutty
2016-10-10  9:45       ` Duy Nguyen
2016-10-10 13:06         ` Michael Tutty
2016-10-11 15:41           ` Kevin Daudt
2016-10-12 16:41     ` [PATCH] worktree: allow the main brach of a bare repository to be checked out Dennis Kaarsemaker
2016-10-12 17:35       ` Michael Tutty
2016-10-12 18:37       ` Junio C Hamano
2016-10-12 18:50         ` Junio C Hamano
2016-10-13 10:31           ` Duy Nguyen
2016-10-12 19:23         ` Dennis Kaarsemaker

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