diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2017-11-14 16:14:35 +0100 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2017-11-14 20:26:39 +0100 |
commit | 52bfd064627c6a63b82bc81e7ebabac299b25eed (patch) | |
tree | ca5160fb5bf53efd77a519a47ec8e063212f3bb5 /lib/api/internal.rb | |
parent | 3730d89fe8578ce827468ebebef9cd6e33ae89f4 (diff) | |
download | gitlab-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.rb | 4 |
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] |