Re: [PATCH] More readable 'Not a git repository' messages
- From
Jared Hance <jaredhance@gmail.com>
- Date
- Aug 10, 2010, 15:52 UTC
- Message-ID
- <20100810155240.GA5116@localhost.localdomain>
- In-Reply-To
- <i3pdkj$hut$1@dough.gmane.org>
On Mon, Aug 09, 2010 at 07:24:35PM +0200, Ralf Ebert wrote:
> old: Not a git repository (or any of the parent directories): .git > new: Not in a git repository: /home/bob/somefolder
Don't we lose information here? Perhaps print the value of DEFAULT_GIT_DIR_ENVIRONMENT.
Show 6 quoted lines
> old: Not a git repository (or any parent up to mount parent /home/bob) > old: Stopping at filesystem boundary > (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). > new: Not in a git repository: /home/bob/somefolder > new: (stopped searching at /home because > GIT_DISCOVERY_ACROSS_FILESYSTEM is not set)
This certainly looks good, but some people might not realize /home is a filesystem boundary (perhaps those who had someone else set up their system and don't know their partition setup. I suggest:
(stopped searching at the filesystem boundary, /home, because GIT_DISCOVERY_ACROSS_FILESYSTEM is not set)