diff --git a/static/js/controllers.js b/static/js/controllers.js index 555356993..e063630df 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -1901,7 +1901,7 @@ function NewRepoCtrl($scope, $location, $http, $timeout, UserService, ApiService $scope.githubClientId = KeyService.githubClientId; $scope.repo = { - 'is_public': 1, + 'is_public': 0, 'description': '', 'initialize': '' }; @@ -1920,9 +1920,6 @@ function NewRepoCtrl($scope, $location, $http, $timeout, UserService, ApiService // Determine whether private repositories are allowed for the namespace. checkPrivateAllowed(); - - // Default to private repos for organizations. - $scope.repo.is_public = isUserNamespace ? '1' : '0'; }); $scope.changeNamespace = function(namespace) { diff --git a/static/partials/new-repo.html b/static/partials/new-repo.html index e4f74c639..d2cd8941a 100644 --- a/static/partials/new-repo.html +++ b/static/partials/new-repo.html @@ -166,7 +166,8 @@