summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorgfyoung <gfyoung17+gitlab@gmail.com>2018-10-22 07:00:50 +0000
committerRémy Coutable <remy@rymai.me>2018-10-22 07:00:50 +0000
commitc858f70d076dc44f6bf1ab1f7acb1fc13a12ab1b (patch)
tree40fa82826cf182f47b1c905e738c8ee955ad14c2 /lib/backup
parent173b1436b1622b85d4a81e3577c6492cbb93a8b8 (diff)
downloadgitlab-ce-c858f70d076dc44f6bf1ab1f7acb1fc13a12ab1b.tar.gz
Enable frozen string for lib/gitlab/*.rb
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index afdc6f383c1..a0434a66ef1 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -164,7 +164,7 @@ module Backup
def tar_version
tar_version, _ = Gitlab::Popen.popen(%w(tar --version))
- tar_version.force_encoding('locale').split("\n").first
+ tar_version.dup.force_encoding('locale').split("\n").first
end
def skipped?(item)