git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] bare repository detection does not work with aliases
@ 2013-03-07 22:47 Mark Lodato
  2013-03-08  5:48 ` Jeff King
  0 siblings, 1 reply; 16+ messages in thread
From: Mark Lodato @ 2013-03-07 22:47 UTC (permalink / raw)
  To: git list

It seems that the fallback bare repository detection in the absence of
core.bare fails for aliases.

$ git init --bare foo
$ cd foo
$ git config alias.s 'status -sb'
$ git s
fatal: This operation must be run in a work tree
$ sed -i -e '/bare =/d' config
$ git s
## Initial commit on master
?? HEAD
?? config
?? description
?? hooks
?? info/
$ git status -sb
fatal: This operation must be run in a work tree

The reason I am using the fallback is to use a single bare repository
with multiple working directories (via git-new-workdir) as suggested
in 8fa0ee3b [1].

[1] https://github.com/git/git/commit/8fa0ee3b50736eb869a3e13375bb041c1bf5aa12

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

end of thread, other threads:[~2013-03-08 23:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 22:47 [BUG] bare repository detection does not work with aliases Mark Lodato
2013-03-08  5:48 ` Jeff King
2013-03-08  6:27   ` Junio C Hamano
2013-03-08  6:37     ` Jeff King
2013-03-08  7:15   ` [PATCH] setup: suppress implicit "." work-tree for bare repos Jeff King
2013-03-08  7:44     ` Johannes Sixt
2013-03-08  8:42       ` Jeff King
2013-03-08  9:28         ` [PATCHv2] setup and GIT_IMPLICIT_WORK_TREE Jeff King
2013-03-08  9:29           ` [PATCH v2 1/3] cache.h: drop LOCAL_REPO_ENV_SIZE Jeff King
2013-03-08  9:30           ` [PATCH v2 2/3] environment: add GIT_PREFIX to local_repo_env Jeff King
2013-03-08 21:39             ` Eric Sunshine
2013-03-08 21:44               ` Jeff King
2013-03-08 23:03                 ` Junio C Hamano
2013-03-08  9:32           ` [PATCH v2 3/3] setup: suppress implicit "." work-tree for bare repos Jeff King
2013-03-08  7:54     ` [PATCH] " Junio C Hamano
2013-03-08  8:43       ` Jeff King

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