Re: [PATCH 4/5] attr: do not respect symlinks for in-tree .gitattributes
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 9, 2016, 22:58 UTC
- Message-ID
- <xmqqmvh88dlu.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACsJy8BoEXDjwe=ZX5ZOC_mvaMjYrB3i7wcMmiOP3mm5-rwC5Q@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 6 quoted lines
> Let's err on the safe side and disable symlinks to outside repo by > default (or even all symlinks on .gitattributes and .gitignore as the > first step) > > What I learned from my changes in .gitignore is, if we have not > forbidden something, people likely find some creative use for it.
Yup. Supporting any symlink in-tree is like requiring Git to be used only on symlink-capable filesystems. Not allowing it sounds like a very sensible option and unlike true contents, there is no downside to give that limitation to things like .git<anything>.
Shouldn't we do the same for .gitmodules while we are at it?