Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2033 from mizzy/fix-hash-key-in-backup.rake

Fix hash key settings["gitlab_version"] to settings[:gitlab_version]
  • Loading branch information...
commit 6e3e3e7fd2a2dbbe736f43c1d201da68a57e9490 2 parents 9e8aadb + 71ff619
Dmitriy Zaporozhets randx authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tasks/gitlab/backup.rake
4 lib/tasks/gitlab/backup.rake
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.