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
1fe04329
Commit
1fe04329
authored
Mar 28, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into ce-to-ee-2018-03-28
parents
3f93c12b
4f120505
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ee/lib/gitlab/git/checksum.rb
ee/lib/gitlab/git/checksum.rb
+5
-3
No files found.
ee/lib/gitlab/git/checksum.rb
View file @
1fe04329
...
...
@@ -37,15 +37,17 @@ module Gitlab
if
status
&
.
zero?
refs
=
output
.
split
(
"
\n
"
)
refs
.
inject
(
nil
)
do
|
checksum
,
ref
|
value
=
Digest
::
SHA1
.
hexdigest
(
ref
)
re
sult
=
re
fs
.
inject
(
nil
)
do
|
checksum
,
ref
|
value
=
Digest
::
SHA1
.
hexdigest
(
ref
)
.
hex
if
checksum
.
nil?
value
else
(
checksum
.
hex
^
value
.
hex
).
to_s
(
16
)
checksum
^
value
end
end
result
.
to_s
(
16
)
else
# Empty repositories return with a non-zero status and an empty output.
if
output
&
.
empty?
...
...
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