git add does not sanitize paths
- From
- Jan Engelhardt <jengelh@computergmbh.de>
- Date
- Jan 25, 2008, 19:57 UTC
- Message-ID
- <Pine.LNX.4.64.0801252055520.15243@fbirervta.pbzchgretzou.qr>
Hi,
git add net/netfilter//nf_conntrack_sip.c
while this is a valid path in Linux, git refuses to add it to the index. Would it be worthwhile to sanitize it (either by calling realpath(3) or by doing a stat(2))? (Please consider this as a feature request.) Please cc on replies, thanks :)
Jan
- git version 1.5.3.4