diff options
author | Gosuke Miyashita <gosukenator@gmail.com> | 2012-11-22 10:38:56 +0900 |
---|---|---|
committer | Gosuke Miyashita <gosukenator@gmail.com> | 2012-11-22 10:38:56 +0900 |
commit | 71ff619973d52c22e49303883aaa77801be378c7 (patch) | |
tree | 2b3944c40e7b719de485c630d07a6d6cc407764c /lib | |
parent | 9e8aadb0f06f16248f82ae948ed7f875f8c0e2f2 (diff) | |
download | gitlab-ce-71ff619973d52c22e49303883aaa77801be378c7.tar.gz |
Fix hash key settings["gitlab_version"] to settings[:gitlab_version]
In backup_create, backup information hash is using symbol as its key.
But in backup_restore, string key is used and it returns empty value.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/backup.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake index 06d7cb65d64..17a0e336bb5 100644 --- a/lib/tasks/gitlab/backup.rake +++ b/lib/tasks/gitlab/backup.rake @@ -85,11 +85,11 @@ namespace :gitlab do 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/,"") + if settings[:gitlab_version] != %x{git rev-parse HEAD}.gsub(/\n/,"") puts "gitlab_version mismatch:".red puts " Your current HEAD differs from the HEAD in the backup!".red puts " Please switch to the following revision and try again:".red - puts " revision: #{settings["gitlab_version"]}".red + puts " revision: #{settings[:gitlab_version]}".red exit 1 end |