diff options
author | Elliot <ewiltshire@perforce.com> | 2015-03-12 13:35:51 -0700 |
---|---|---|
committer | Elliot <ewiltshire@perforce.com> | 2015-03-13 09:27:10 -0700 |
commit | 9bb5986d4afff761ddc344413fdb34babb4c9d70 (patch) | |
tree | 2f7feef76a59cec0cff8241c6a90d2bd42bc85fd | |
parent | 0f144f36bc5703ba745a8a6d1cde14fb694c4e34 (diff) | |
download | gitlab-ce-9bb5986d4afff761ddc344413fdb34babb4c9d70.tar.gz |
Remove unnecessary fetch of commit messages for initial push. This will reduce the memory usage significantly.
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | app/services/git_push_service.rb | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/CHANGELOG b/CHANGELOG index b0adaeb101b..896e6a6531b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ Please view this file on the master branch, on stable branches it's out of date. v 7.9.0 (unreleased) + - Remove unnecessary fetch of commit messages on initial push (Perforce Software) - Fix broken email images (Hannes Rosenögger) - Fix mass SQL statements on initial push (Hannes Rosenögger) - Add tag push notifications and normalize HipChat and Slack messages to be consistent (Stan Hu) diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index bfabfd7ade3..232028b1e0b 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -29,9 +29,6 @@ class GitPushService elsif push_to_new_branch?(ref, oldrev) # Re-find the pushed commits. if is_default_branch?(ref) - # Initial push to the default branch. Take the full history of that branch as "newly pushed". - @push_commits = project.repository.commits(newrev) - # Set protection on the default branch if configured if (current_application_settings.default_branch_protection != PROTECTION_NONE) developers_can_push = current_application_settings.default_branch_protection == PROTECTION_DEV_CAN_PUSH ? true : false |