1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #9978 invalid

API v2 converts non-ASCII characters in repo name to hyphen

John Garcia
created an issue

When creating a repository via the API with slug: label-test and name: label/test, the name of the created repository is "label-test" and not the expected "label/test" I can create repositories via the bitbucket website as "label/test" without trouble; the slug is converted to "label-test" as expected and leaves the name intact. Here is the full API request:

POST /2.0/repositories/LabelInteractive/label-sample
HTTP/1.1
Host: api.bitbucket.org
scm: git
name: label/sample
fork_policy: no_public_forks
is_private: 1
User-Agent: Guzzle/3.9.1 curl/7.30.0 PHP/5.5.9

Comments (2)

  1. Log in to comment