summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/repo_restorer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import_export/repo_restorer.rb')
-rw-r--r--lib/gitlab/import_export/repo_restorer.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/import_export/repo_restorer.rb b/lib/gitlab/import_export/repo_restorer.rb
index 1c6629cf942..cc214d730fe 100644
--- a/lib/gitlab/import_export/repo_restorer.rb
+++ b/lib/gitlab/import_export/repo_restorer.rb
@@ -46,6 +46,11 @@ module Gitlab
)
Repositories::DestroyService.new(repository).execute
+
+ # Because Gitlab::Git::Repository#remove happens inside a run_after_commit
+ # callback in the Repositories::DestroyService#execute we need to trigger
+ # the callback.
+ repository.project.touch
end
end
end