summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-30 12:48:27 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-30 12:48:27 -0800
commit10ec9b2293646f88a1edeea472de82bda340d9c6 (patch)
tree9c4ac949f40f3943e6cb21da09a8bf47bf434c58 /lib/tasks
parentc19e766f1edd927b911187052c859b1f1af76eee (diff)
parenta9c2500a55a4d5bdb4aeab13c0167377f9841e90 (diff)
downloadgitlab-ce-10ec9b2293646f88a1edeea472de82bda340d9c6.tar.gz
Merge pull request #2017 from duksis/backup_restore
bugfix: backup data retrieved with the same type keys as saved
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/backup.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
index 17a0e336bb5..c01fe479dba 100644
--- a/lib/tasks/gitlab/backup.rake
+++ b/lib/tasks/gitlab/backup.rake
@@ -82,7 +82,7 @@ namespace :gitlab do
end
settings = YAML.load_file("backup_information.yml")
- ENV["VERSION"] = "#{settings["db_version"]}" if settings["db_version"].to_i > 0
+ ENV["VERSION"] = "#{settings[:db_version]}" if settings[:db_version].to_i > 0
# restoring mismatching backups can lead to unexpected problems
if settings[:gitlab_version] != %x{git rev-parse HEAD}.gsub(/\n/,"")