git-config does not check validity of variable names
- From
- Libor Pechacek <lpechacek@suse.cz>
- Date
- Jan 8, 2011, 14:46 UTC
- Message-ID
- <20110108144644.GA11019@localhost.suse.cz>
Hello,
I've noticed that git-config accepts variable names in the form "a=b" for its "get" operation. That means "git config a=b" does not write anything to its output and exists with status 1.
According to the man page only alphanumeric characters and - are allowed in variable names. Would it make sense to spit out an error message when the user supplies an invalid variable name like the above?
Libor
-- Libor Pechacek SUSE L3 Team, Prague