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
8fa54d95
Commit
8fa54d95
authored
Aug 08, 2018
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error when trying to authenticate user on repo with size check enabled
Bug was introduced in !6767
parent
e6ebe4f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ee/spec/lib/gitlab/git_access_spec.rb
ee/spec/lib/gitlab/git_access_spec.rb
+6
-0
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+1
-1
No files found.
ee/spec/lib/gitlab/git_access_spec.rb
View file @
8fa54d95
...
...
@@ -226,6 +226,12 @@ For more information: #{EE::Gitlab::GeoGitAccess::GEO_SERVER_DOCS_URL}"
project
.
update_attribute
(
:repository_size_limit
,
2
.
megabytes
)
end
context
'when trying to authenticate the user'
do
it
'does not raise an error'
do
expect
{
push_changes
}.
not_to
raise_error
end
end
context
'when pushing a new branch'
do
it
'accepts the push'
do
master_sha
=
project
.
commit
(
'master'
).
id
...
...
lib/gitlab/git/repository.rb
View file @
8fa54d95
...
...
@@ -382,7 +382,7 @@ module Gitlab
end
def
new_blobs
(
newrev
)
return
[]
if
newrev
==
::
Gitlab
::
Git
::
BLANK_SHA
return
[]
if
newrev
.
blank?
||
newrev
==
::
Gitlab
::
Git
::
BLANK_SHA
strong_memoize
(
"new_blobs_
#{
newrev
}
"
)
do
wrapped_gitaly_errors
do
...
...
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