Commit 47cef41e authored by Robert Speicher's avatar Robert Speicher

Merge branch 'dm-downtime-check-only-added-files' into 'master'

Only check new migrations in 'rake downtime_check'

See merge request !9785
parents 7867b992 e4551749
......@@ -62,7 +62,7 @@ namespace :gitlab do
ref = Shellwords.escape(args[:ref])
migrations = `git diff #{ref}.. --name-only -- db/migrate`.lines
migrations = `git diff #{ref}.. --diff-filter=A --name-only -- db/migrate`.lines
.map { |file| Rails.root.join(file.strip).to_s }
.select { |file| File.file?(file) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment