Commit 9b5e4b69 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'comment-git-access' into 'master'

Added inline comments about what `.blank_ref?` means

/cc @sytses 

See merge request !155
parents 71184120 bac18ef7
......@@ -184,10 +184,12 @@ module Gitlab
return build_status_object(false, "You can not delete tag")
end
else
# if newrev is blank, the branch was deleted
if Gitlab::Git.blank_ref?(newrev) || !git_hook.commit_validation?
return build_status_object(true)
end
# if oldrev is blank, the branch was just created
oldrev = project.default_branch if Gitlab::Git.blank_ref?(oldrev)
commits =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment