summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2017-11-14 16:14:35 +0100
committerAhmad Sherif <me@ahmadsherif.com>2017-11-14 20:26:39 +0100
commit52bfd064627c6a63b82bc81e7ebabac299b25eed (patch)
treeca5160fb5bf53efd77a519a47ec8e063212f3bb5 /lib/api/internal.rb
parent3730d89fe8578ce827468ebebef9cd6e33ae89f4 (diff)
downloadgitlab-ce-52bfd064627c6a63b82bc81e7ebabac299b25eed.tar.gz
Use relative git object paths to construct absolute ones before setting Envfix/git-env-repo-paths
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 6e78ac2c903..451121a4cea 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -19,7 +19,9 @@ module API
status 200
# Stores some Git-specific env thread-safely
- Gitlab::Git::Env.set(parse_env)
+ env = parse_env
+ env = fix_git_env_repository_paths(env, repository_path) if project
+ Gitlab::Git::Env.set(env)
actor =
if params[:key_id]