Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
e3a7e43f
Commit
e3a7e43f
authored
Dec 20, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename gitlab:activate_namespaces to gitlab:enable_namespaces
parent
d188adfd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/raketasks/features.md
doc/raketasks/features.md
+2
-2
lib/tasks/gitlab/enable_namespaces.rake
lib/tasks/gitlab/enable_namespaces.rake
+1
-1
No files found.
doc/raketasks/features.md
View file @
e3a7e43f
### Enable usernames and namespaces for user projects
### Enable usernames and namespaces for user projects
This command will enable the namespace feature introduced in v4.0. It will move every project in its namespace folder.
This command will enable the namespace
s
feature introduced in v4.0. It will move every project in its namespace folder.
Note:
Note:
...
@@ -13,7 +13,7 @@ Old path: `git@example.org:myrepo.git`
...
@@ -13,7 +13,7 @@ Old path: `git@example.org:myrepo.git`
New path:
`git@example.org:username/myrepo.git`
or
`git@example.org:groupname/myrepo.git`
New path:
`git@example.org:username/myrepo.git`
or
`git@example.org:groupname/myrepo.git`
```
```
bundle exec rake gitlab:
activat
e_namespaces
bundle exec rake gitlab:
enabl
e_namespaces
```
```
...
...
lib/tasks/gitlab/
activat
e_namespaces.rake
→
lib/tasks/gitlab/
enabl
e_namespaces.rake
View file @
e3a7e43f
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GITLAB | Enable usernames and namespaces for user projects"
desc
"GITLAB | Enable usernames and namespaces for user projects"
task
activat
e_namespaces: :environment
do
task
enabl
e_namespaces: :environment
do
print
"
\n
Usernames for users:"
.
yellow
print
"
\n
Usernames for users:"
.
yellow
User
.
find_each
(
batch_size:
500
)
do
|
user
|
User
.
find_each
(
batch_size:
500
)
do
|
user
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment