Issue #3344 resolved

Unable to create a repository with no_public_forks set via API (BB-3169)

Rob Allen
created an issue


{{{ curl -X POST -u bigroom:{password} -d name=myrepo -d scm=git -d no_public_forks=True -d is_private=True }}}

Doesn't set the "No public forks" setting of the repository being created.

Comments (8)

  1. Brian Nguyen staff

    Hi Richard,

    I just tested this and this issue has been fixed:

    $ curl -X POST -u bnguyen -d name=myrepo -d scm=git -d no_public_forks=True -d is_private=False
        "scm": "git",
        "has_wiki": false,
        "last_updated": "2013-05-31 23:14:51",
        "creator": null,
        "forks_count": 0,
        "created_on": "2013-05-31 23:14:51",
        "owner": "bnguyen",
        "logo": "",
        "email_mailinglist": "",
        "is_mq": false,
        "size": 0,
        "read_only": false,
        "fork_of": null,
        "mq_of": null,
        "followers_count": 1,
        "state": "creating",
        "utc_created_on": "2013-05-31 21:14:51+00:00",
        "website": "",
        "description": "",
        "has_issues": false,
        "is_fork": false,
        "slug": "myrepo",
        "is_private": false,
        "name": "myrepo",
        "language": "",
        "utc_last_updated": "2013-05-31 21:14:51+00:00",
        "email_writers": true,
        "no_public_forks": true,
        "resource_uri": "/1.0/repositories/bnguyen/myrepo"

    Apologies, but it looks like we forgot to close this issue when we fixed the problem.

    Cheers, Brian

  2. Erik van Zijst staff

    You won't be able to turn off no_public_forks when forking a repo that has it set to True, so I assume you want to disallow public forks on a fork of a repo that does allow that?

  3. Log in to comment