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
Léo-Paul Géneau
gitlab-ce
Commits
e7617303
Commit
e7617303
authored
Dec 08, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore the check for update in commit_file
parent
a51f26e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
app/models/repository.rb
app/models/repository.rb
+8
-0
No files found.
app/models/repository.rb
View file @
e7617303
...
...
@@ -783,6 +783,14 @@ class Repository
user
,
path
,
content
,
message
,
branch
,
update
,
author_email:
nil
,
author_name:
nil
,
source_branch:
nil
,
source_project:
project
)
if
branch_exists?
(
branch
)
&&
update
==
false
# tree_entry is private
if
raw_repository
.
send
(
:tree_entry
,
commit
(
branch
),
path
)
raise
Gitlab
::
Git
::
Repository
::
InvalidBlobName
.
new
(
"Filename already exists; update not allowed"
)
end
end
multi_action
(
user:
user
,
branch:
branch
,
...
...
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