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
896c3a0a
Commit
896c3a0a
authored
Feb 04, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove update_repository calls
parent
5c649266
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
24 deletions
+0
-24
app/models/namespace.rb
app/models/namespace.rb
+0
-6
app/models/project_team.rb
app/models/project_team.rb
+0
-1
app/models/protected_branch.rb
app/models/protected_branch.rb
+0
-7
app/models/users_project.rb
app/models/users_project.rb
+0
-10
No files found.
app/models/namespace.rb
View file @
896c3a0a
...
@@ -27,7 +27,6 @@ class Namespace < ActiveRecord::Base
...
@@ -27,7 +27,6 @@ class Namespace < ActiveRecord::Base
after_create
:ensure_dir_exist
after_create
:ensure_dir_exist
after_update
:move_dir
after_update
:move_dir
after_commit
:update_gitolite
,
on: :update
,
if: :require_update_gitolite
after_destroy
:rm_dir
after_destroy
:rm_dir
scope
:root
,
where
(
'type IS NULL'
)
scope
:root
,
where
(
'type IS NULL'
)
...
@@ -89,11 +88,6 @@ class Namespace < ActiveRecord::Base
...
@@ -89,11 +88,6 @@ class Namespace < ActiveRecord::Base
end
end
end
end
def
update_gitolite
@require_update_gitolite
=
false
projects
.
each
(
&
:update_repository
)
end
def
rm_dir
def
rm_dir
dir_path
=
File
.
join
(
Gitlab
.
config
.
gitolite
.
repos_path
,
path
)
dir_path
=
File
.
join
(
Gitlab
.
config
.
gitolite
.
repos_path
,
path
)
FileUtils
.
rm_r
(
dir_path
,
force:
true
)
FileUtils
.
rm_r
(
dir_path
,
force:
true
)
...
...
app/models/project_team.rb
View file @
896c3a0a
...
@@ -112,7 +112,6 @@ class ProjectTeam
...
@@ -112,7 +112,6 @@ class ProjectTeam
source_team
.
each
do
|
tm
|
source_team
.
each
do
|
tm
|
tm
.
save
tm
.
save
end
end
target_project
.
update_repository
end
end
true
true
...
...
app/models/protected_branch.rb
View file @
896c3a0a
...
@@ -18,13 +18,6 @@ class ProtectedBranch < ActiveRecord::Base
...
@@ -18,13 +18,6 @@ class ProtectedBranch < ActiveRecord::Base
validates
:name
,
presence:
true
validates
:name
,
presence:
true
validates
:project
,
presence:
true
validates
:project
,
presence:
true
after_save
:update_repository
after_destroy
:update_repository
def
update_repository
project
.
update_repository
end
def
commit
def
commit
project
.
repository
.
commit
(
self
.
name
)
project
.
repository
.
commit
(
self
.
name
)
end
end
...
...
app/models/users_project.rb
View file @
896c3a0a
...
@@ -81,11 +81,6 @@ class UsersProject < ActiveRecord::Base
...
@@ -81,11 +81,6 @@ class UsersProject < ActiveRecord::Base
end
end
end
end
GitoliteWorker
.
perform_async
(
:update_repositories
,
project_ids
)
true
true
rescue
rescue
false
false
...
@@ -100,11 +95,6 @@ class UsersProject < ActiveRecord::Base
...
@@ -100,11 +95,6 @@ class UsersProject < ActiveRecord::Base
end
end
end
end
GitoliteWorker
.
perform_async
(
:update_repositories
,
project_ids
)
true
true
rescue
rescue
false
false
...
...
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