diff options
-rw-r--r-- | lib/gitlab/git/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 69368898cc1..455c9902a0a 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -1317,8 +1317,8 @@ module Gitlab end # rubocop:enable Metrics/ParameterLists - def write_config(full_path: nil) - rugged.config['gitlab.fullpath'] = full_path + def write_config(full_path:) + rugged.config['gitlab.fullpath'] = full_path if full_path.present? end def gitaly_repository |