We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb0859 commit 22b05a0Copy full SHA for 22b05a0
lib/redmine_git_hosting/commands/git.rb
@@ -80,7 +80,7 @@ def sudo_get_git_global_params(namespace)
80
params = []
81
end
82
83
- git_config_as_hash(params)
+ git_config_as_hash(namespace, params)
84
85
86
@@ -111,10 +111,12 @@ def prefix_key(namespace, key)
111
112
113
114
- def git_config_as_hash(params)
+ def git_config_as_hash(namespace, params)
115
value_hash = {}
116
117
params.each do |value_pair|
118
+ next if value_pair.empty?
119
+ next if !value_pair.start_with?(namespace)
120
global_key = value_pair.split(' ')[0]
121
value = value_pair.split(' ')[1]
122
key = global_key.split('.')[1]
0 commit comments