Re: [PATCH v3 00/20] refs backend rebase on pu
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 4, 2016, 10:09 UTC
- Message-ID
- <CACsJy8Cw9CM+EBw85KM1RcDAsRY8LbTFWFUq0dLSHWY0NLPZMA@mail.gmail.com>
- In-Reply-To
- <1454443734.5545.1.camel@twopensource.com>
On Wed, Feb 3, 2016 at 3:08 AM, David Turner <dturner@twopensource.com> wrote:
> Are there any more reviews on this? I do have some changes from this > set, but they're pretty minor so I don't want to post a new one (unless > folks would rather see those changes before reviewing). Let me know.
I think you need to keep "refs" directory back somehow. Without it (e.g. "git init --ref-storage=lmdb" does not create "refs"), is_git_directory() from _old_ git versions fails to recognize this is a good repository. So instead of dying on finding an unsupported repository, setup code keeps on looking for another repository in parent directories. If I accidentally run "git add something" with an old binary, "something" could be added to a wrong repository. Very confusing.
-- Duy