Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hash key settings["gitlab_version"] to settings[:gitlab_version] #2033

Merged
merged 1 commit into from
Nov 22, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/tasks/gitlab/backup.rake
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ namespace :gitlab do
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 # 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 "gitlab_version mismatch:".red
puts " Your current HEAD differs from the HEAD in the backup!".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 " Please switch to the following revision and try again:".red
puts " revision: #{settings["gitlab_version"]}".red puts " revision: #{settings[:gitlab_version]}".red
exit 1 exit 1
end end


Expand Down