Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
ee7dc8006d60
Commit
a0b85374
authored
Oct 19, 2020
by
Georges Racinet
🦑
Browse files
HgGitRepository: fixing projet path environment variables
Closes
#359
--HG-- branch : heptapod
parent
163b1e67a721
Pipeline
#12298
skipped with stages
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
lib/gitlab/mercurial/hg_git_repository.rb
View file @
ee7dc800
...
...
@@ -396,13 +396,18 @@ def hg_env_for_write(user, force_system_user: false)
'HEPTAPOD_USERINFO_NAME'
=>
user
&
.
name
,
'HEPTAPOD_USERINFO_EMAIL'
=>
user
&
.
email
,
'GL_REPOSITORY'
=>
@gl_repository
,
'HEPTAPOD_PROJECT_PATH'
=>
self
.
name
.
chomp
(
'.git'
),
# TODO won't work on hashed storage
'HEPTAPOD_PROJECT_NAMESPACE_FULL_PATH'
=>
@relative_path
.
rpartition
(
'/'
)[
0
],
'HGUSER'
=>
nil
,
'HGRCPATH'
=>
Gitlab
::
Mercurial
.
hgrc_path
}
unless
@hg_project_for_perms
.
nil?
env
.
update
(
{
'HEPTAPOD_PROJECT_PATH'
=>
@hg_project_for_perms
.
path
,
'HEPTAPOD_PROJECT_NAMESPACE_FULL_PATH'
=>
@hg_project_for_perms
.
namespace
.
full_path
})
end
if
force_system_user
# we need a real user for pre-receive hooks to succeed
# we'll change the display name for clarity, but `id` must
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment