Skip to content

Commit aa920ec

Browse files
committed
🚒 Fix issue when having to guess username in git <service> create.
1 parent 5f5099b commit aa920ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git_repo/repo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ def do_create(self):
355355
if not self.user_name and not self.repo_name:
356356
self.set_repo_slug('/'.join([service.user,
357357
os.path.basename(os.path.abspath(self.path))]))
358+
if not self.user_name:
359+
self.user_name = service.user
358360
service.create(self.user_name, self.repo_name, add=self.add)
359361
log.info('Successfully created remote repository `{}`, '
360362
'with local remote `{}`'.format(

0 commit comments

Comments
 (0)