Fix project export rake task
What does this MR do and why?
Based on the #429562 (closed), we are introducing a fix for failing export.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Checkout the
bmarjanovic/429562-project-export-rake-task-isn-t-working
branch - Export a project using the rake task:
EXPORT_DEBUG=true bin/rails 'gitlab:import_export:export[root,gitlab-org,gitlab-shell,project-export.tar.gz]'
3.Verify that the export has been successful, and there are no following error:
ERROR -- : Exception: undefined method '-' for nil:NilClass
Related to #429562 (closed)
Edited by Bojan Marjanovic