Validate nicknames of remote branches to prohibit confusing ones
commitdf93e33c8bc8c79751a45d8005c6a92b18d4ba6d
authorDaniel Barkalow <barkalow@iabervon.org>
Fri, 15 Feb 2008 19:14:18 +0000 (15 14:14 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Feb 2008 22:23:22 +0000 (15 14:23 -0800)
tree465e998c4c34a36b8344b2e09152f65fa3220647
parent8ca496e97d100195c9015f4da8ddaad693e91961
Validate nicknames of remote branches to prohibit confusing ones

The original problem was that the parsers for configuration files were
getting confused by seeing as nicknames remotes that involved
directory-changing characters. In particular, the branches config file
for ".." was particularly mystifying on platforms that can open
directories and read odd data from them.

The validation function was written by Junio Hamano (with a typo
corrected).

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c