gitlab-org--gitlab-foss/spec
Sean McGivern 34a859ee2a Fix MR diffs background migration when file modes are missing
Guess the modes based on the following:

1. If the file didn't exist, it's zero.
2. If the diff contains 'Subproject commit', it might be a submodule, so 0600.
3. Otherwise, it's 0644.

This isn't perfect, but it doesn't have to be - it won't change file modes in
the repository.
2017-08-18 13:02:30 +01:00
..
bin
config
controllers Merge remote-tracking branch 'upstream/master' into 36089-handle-ref-failure-better 2017-08-14 19:33:35 +08:00
db/production
factories Merge remote-tracking branch 'upstream/master' into 36089-handle-ref-failure-better 2017-08-14 19:33:35 +08:00
features Merge branch '36087-users-cannot-delete-their-account' into 'master' 2017-08-17 14:17:05 +00:00
finders Merge remote-tracking branch 'upstream/master' into 36089-handle-ref-failure-better 2017-08-14 19:33:35 +08:00
fixtures
helpers Merge branch '36041-notification-title' into 'master' 2017-08-18 08:50:59 +00:00
initializers Setup repositories settings properly 2017-08-17 16:00:07 -07:00
javascripts fix unnecessarily long gl.utils.backOff test 2017-08-18 03:01:23 -05:00
lib Fix MR diffs background migration when file modes are missing 2017-08-18 13:02:30 +01:00
mailers
migrations Merge branch 'backstage/gb/migrations-tests-schema-version' into 'master' 2017-08-17 11:54:54 +00:00
models Merge branch 'ee-2628-backport-to-ce' into 'master' 2017-08-17 13:53:39 +00:00
policies
presenters
requests Merge branch '34049-public-commits-should-not-require-authentication' into 'master' 2017-08-16 10:39:10 +00:00
routing
rubocop/cop Add SaferBooleanColumn cop 2017-08-14 07:57:57 -07:00
serializers
services Merge branch 'dm-gpg-signature-performance' into 'master' 2017-08-16 18:34:55 +00:00
sidekiq/cron
support Merge branch 'backstage/gb/migrations-tests-schema-version' into 'master' 2017-08-17 11:54:54 +00:00
tasks Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
unicorn
uploaders
validators
views Display GPG status loading spinner only when Ajax request is made 2017-08-15 08:20:35 +00:00
workers Merge branch 'ee-2628-backport-to-ce' into 'master' 2017-08-17 13:53:39 +00:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Migrate down before each migration unit test 2017-08-17 11:42:17 +02:00