Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bac18ef7
Commit
bac18ef7
authored
Feb 01, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added inline comments about what `.blank_ref?` means
parent
b18b4bc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+2
-0
No files found.
lib/gitlab/git_access.rb
View file @
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
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment