summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2018-11-29 16:08:14 +0000
committerNick Thomas <nick@gitlab.com>2018-11-29 16:08:14 +0000
commit198fdc54789dcb24efb0622a23e6931d83e1faa6 (patch)
tree82c4d1926bd246fb857bb5ad9adaf68c45982dd5 /app/services
parent6775dafa3816239f6fa1b12428df42572be5a158 (diff)
downloadgitlab-ce-198fdc54789dcb24efb0622a23e6931d83e1faa6.tar.gz
Store hashed storage paths in the database
Diffstat (limited to 'app/services')
-rw-r--r--app/services/projects/create_service.rb2
-rw-r--r--app/services/projects/hashed_storage/migrate_repository_service.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb
index 481de34b977..2458f5b308a 100644
--- a/app/services/projects/create_service.rb
+++ b/app/services/projects/create_service.rb
@@ -86,6 +86,8 @@ module Projects
@project.create_wiki unless skip_wiki?
end
+ @project.track_project_repository
+
event_service.create_project(@project, current_user)
system_hook_service.execute_hooks_for(@project, :create)
diff --git a/app/services/projects/hashed_storage/migrate_repository_service.rb b/app/services/projects/hashed_storage/migrate_repository_service.rb
index 4462d504071..f3e026ba38c 100644
--- a/app/services/projects/hashed_storage/migrate_repository_service.rb
+++ b/app/services/projects/hashed_storage/migrate_repository_service.rb
@@ -30,6 +30,7 @@ module Projects
if result
project.write_repository_config
+ project.track_project_repository
else
rollback_folder_move
project.storage_version = nil