debug added

This commit is contained in:
Jakobus Schürz 2019-07-31 18:15:19 +02:00
parent 161308d25d
commit 106522cee3

View file

@ -43,13 +43,17 @@ def ssh_extract_user(pubkey):
raise InsecureSSHKeyUsername(repr(user)) raise InsecureSSHKeyUsername(repr(user))
def initial_commit(git_dir, cfg, pubkey, user): def initial_commit(git_dir, cfg, pubkey, user):
log.debug('create initial commit')
log.info('User:', user) log.info('User:', user)
log.debug('pubkey', pubkey)
if pubkey is None: if pubkey is None:
keyfile = 'keydir/principals' keyfile = 'keydir/principals'
content = user content = user
else: else:
keyfile = 'keydir/%s.pub' % user keyfile = 'keydir/%s.pub' % user
content = pubkey content = pubkey
log.debug('keyfile', keyfile)
log.debug('content', content)
repository.fast_import( repository.fast_import(
git_dir=git_dir, git_dir=git_dir,
commit_msg='Automatic creation of gitosis repository.', commit_msg='Automatic creation of gitosis repository.',