summaryrefslogtreecommitdiff
path: root/spec/support/import_export
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-12-05 09:52:56 +0100
committerJames Lopez <james@jameslopez.es>2018-12-17 16:14:35 +0100
commit43cc0d5a4ad4464901f700c0a46dbd304c1005c8 (patch)
tree7b3edb57d64f7e975a8c4bc1859e0502da31efe4 /spec/support/import_export
parent574ae4c7aaf34347839c9a44648bfcfea5a1e434 (diff)
downloadgitlab-ce-43cc0d5a4ad4464901f700c0a46dbd304c1005c8.tar.gz
Fix persistent symlink in project import
- Fix permissions after untar is done - Refactor command line util
Diffstat (limited to 'spec/support/import_export')
-rw-r--r--spec/support/import_export/export_file_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/import_export/export_file_helper.rb b/spec/support/import_export/export_file_helper.rb
index a49036c3b80..ac320934f5a 100644
--- a/spec/support/import_export/export_file_helper.rb
+++ b/spec/support/import_export/export_file_helper.rb
@@ -133,6 +133,6 @@ module ExportFileHelper
end
def file_permissions(file)
- File.stat(file).mode & 0777
+ File.lstat(file).mode & 0777
end
end