diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-19 10:34:04 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-19 10:34:04 +0100 |
commit | a5a5ec970e0e8dc56103decd3a0f5fbf3db46bcb (patch) | |
tree | adb5d12a1e56b06f724782ff893d0bb1bb4864e1 /app/services | |
parent | 7ed6da5454c98e78770cee13ac929f5f608a34a1 (diff) | |
download | gitlab-ce-a5a5ec970e0e8dc56103decd3a0f5fbf3db46bcb.tar.gz |
Fewer constants, more helpers.
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/git_push_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index 4885e1b2fc5..a0da07f5c90 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -109,7 +109,7 @@ class GitPushService def push_to_existing_branch?(ref, oldrev) # Return if this is not a push to a branch (e.g. new commits) - Gitlab::Git.branch_ref?(ref) && oldrev != Gitlab::Git::BLANK_SHA + Gitlab::Git.branch_ref?(ref) && !Gitlab::Git.blank_ref?(oldrev) end def push_to_new_branch?(ref, oldrev) |