Commits

Takumi IINO committed 434bf94

Specify a is_private parameter, only when create private repository.

Specify a is_private parameter with None, bitbucket create private repository.
The easy way to avoid this behavior is that do not specify a is_private parameter.

  • Participants
  • Parent commits e36a5b9

Comments (0)

Files changed (1)

         'description': opts.get('description'),
         'language': opts.get('language').lower(),
         'website': opts.get('website'),
-        'is_private': opts.get('private'),
         'scm': 'hg',
     }
+    if opts.get('private'):
+        data['is_private'] = True
+
     _bb_apicall(ui, 'repositories', data)
     # if this completes without exception, assume the request was successful,
     # and clone the new repo