gitlab-org--gitlab-foss/app/workers
Douwe Maan 82a39e3e69 Merge branch '21010-emailsonpushworker-incorrectly-claims-deleted-a-commit-after-a-push' into 'master'
Resolve "EmailsOnPushWorker incorrectly claims deleted a commit after a push"

## What does this MR do?

Fix the comparison order in the emails on push worker, so regular pushes don't show a message about force pushing.

## Are there points in the code the reviewer needs to double check?

Don't think so, it was just a typo: `after_sha` should map to the `source_branch` argument, because it's the head of the comparison.

## Why was this MR needed?

To fix a regression!

## What are the relevant issue numbers?

Closes #21010.

## Does this MR meet the acceptance criteria?

- [x] ~~[CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added~~
- [x] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~
- [x] ~~API support added~~
- Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5894
2016-08-19 18:16:55 +00:00
..
repository_check
admin_email_worker.rb
build_email_worker.rb
delete_user_worker.rb
email_receiver_worker.rb
emails_on_push_worker.rb Fix force-push message in push emails 2016-08-19 13:07:39 +01:00
expire_build_artifacts_worker.rb
git_garbage_collect_worker.rb Refresh branch cache after git gc 2016-07-13 06:49:58 -07:00
gitlab_shell_worker.rb
group_destroy_worker.rb Fix bug where destroying a namespace would not always destroy projects 2016-08-11 15:36:35 -07:00
import_export_project_cleanup_worker.rb using shared path for project import uploads and refactored gitlab remove export worker 2016-08-04 12:51:55 +02:00
irker_worker.rb Use commit deltas when counting files in IrkerWorker 2016-08-03 19:26:10 +02:00
merge_worker.rb
new_note_worker.rb
post_receive.rb Log base64-decoded PostReceive arguments 2016-08-05 15:00:12 +02:00
project_cache_worker.rb
project_destroy_worker.rb Fix skip_repo parameter being ignored when destroying a namespace 2016-08-03 17:07:38 -07:00
project_export_worker.rb limit project expor retry to only 3 2016-07-18 09:23:41 +02:00
project_service_worker.rb
project_web_hook_worker.rb
remove_expired_group_links_worker.rb Allow project group links to be expired 2016-08-18 22:45:41 +01:00
remove_expired_members_worker.rb Create Member.expired scope. 2016-08-09 18:39:13 +02:00
repository_archive_cache_worker.rb Add service to clean up repository archive cache 2016-07-21 10:31:49 -03:00
repository_fork_worker.rb Tracking of custom events 2016-08-17 10:04:04 +02:00
repository_import_worker.rb Tracking of custom events 2016-08-17 10:04:04 +02:00
requests_profiles_worker.rb Profile requests when a header is passed 2016-07-26 20:06:09 +02:00
stuck_ci_builds_worker.rb
system_hook_worker.rb