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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
3d880d93
Commit
3d880d93
authored
Feb 24, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We don't need these checks anymore
parent
c72e7155
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
app/models/repository.rb
app/models/repository.rb
+0
-19
No files found.
app/models/repository.rb
View file @
3d880d93
...
...
@@ -753,17 +753,6 @@ class Repository
author_email:
nil
,
author_name:
nil
,
start_branch_name:
nil
,
start_project:
project
)
entry
=
start_project
.
repository
.
tree_entry_at
(
start_branch_name
||
branch_name
,
path
)
if
entry
if
entry
[
:type
]
==
:blob
raise
Gitlab
::
Git
::
Repository
::
InvalidBlobName
.
new
(
"Directory already exists as a file"
)
else
raise
Gitlab
::
Git
::
Repository
::
InvalidBlobName
.
new
(
"Directory already exists"
)
end
end
multi_action
(
user:
user
,
message:
message
,
...
...
@@ -1160,14 +1149,6 @@ class Repository
blob_data_at
(
sha
,
'.gitlab-ci.yml'
)
end
protected
def
tree_entry_at
(
branch_name
,
path
)
branch_exists?
(
branch_name
)
&&
# tree_entry is private
raw_repository
.
send
(
:tree_entry
,
commit
(
branch_name
),
path
)
end
private
def
blob_data_at
(
sha
,
path
)
...
...
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