debug added
This commit is contained in:
parent
161308d25d
commit
106522cee3
1 changed files with 4 additions and 0 deletions
|
@ -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.',
|
||||||
|
|
Loading…
Reference in a new issue