This normalize check would only trigger if a *single* key was specified.
Change it so that it triggers as long as all keys are in the list of valid
keys. This lets us specify both kdb: true and a sha1/branch/tag.
Phew!
it is applied to all nodes.
"""
if config is None or \
- len(config) == 1 and config.keys() in [['tag'], ['branch'],
- ['sha1'], ['kdb']]:
+ len(filter(lambda x: x in ['tag', 'branch', 'sha1', 'kdb'],
+ config.keys())) == len(config.keys()):
new_config = {}
if config is None:
config = {'branch': 'master'}