diff --git a/lib/gitlab/backend/gitolite_config.rb b/lib/gitlab/backend/gitolite_config.rb
index 7ae34de66bc39b1148435d56e362dc2809482dcb..396d432950551f20d20322ff7d8aebab5b1fb0ad 100644
--- a/lib/gitlab/backend/gitolite_config.rb
+++ b/lib/gitlab/backend/gitolite_config.rb
@@ -126,7 +126,7 @@ module Gitlab
     end
 
     def update_project_config(project, conf)
-      repo_name = project.path
+      repo_name = project.path_with_namespace
 
       repo = if conf.has_repo?(repo_name)
                conf.get_repo(repo_name)