Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-10-02 14:01:55 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-10-02 14:01:55 +0300
commit1c4187e38e09c8dfc4d0cdbd4c702aff5d695acb (patch)
treea9de030f4c6ecbfb75cdd4f70b802db4f2d2611a /lib/gitlab/git
parent9bad9b0a68074d4b0fe5de7f3c5cefd4a808c726 (diff)
Treat nil git push revisons as a blank Git SHA value
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r--lib/gitlab/git/push.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/push.rb b/lib/gitlab/git/push.rb
index 603f860e4f8..7c1309721fd 100644
--- a/lib/gitlab/git/push.rb
+++ b/lib/gitlab/git/push.rb
@@ -9,8 +9,8 @@ module Gitlab
def initialize(project, oldrev, newrev, ref)
@project = project
- @oldrev = oldrev
- @newrev = newrev
+ @oldrev = oldrev.presence || Gitlab::Git::BLANK_SHA
+ @newrev = newrev.presence || Gitlab::Git::BLANK_SHA
@ref = ref
end