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
4f7ba8f2
Commit
4f7ba8f2
authored
Jul 06, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix memoization
parent
36c05b31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/gpg/commit.rb
lib/gitlab/gpg/commit.rb
+2
-2
No files found.
lib/gitlab/gpg/commit.rb
View file @
4f7ba8f2
...
...
@@ -22,7 +22,6 @@ module Gitlab
using_keychain
do
|
gpg_key
|
if
gpg_key
Gitlab
::
Gpg
::
CurrentKeyChain
.
add
(
gpg_key
.
key
)
@verified_signature
=
nil
end
create_cached_signature!
(
gpg_key
)
...
...
@@ -50,6 +49,7 @@ module Gitlab
if
gpg_key
Gitlab
::
Gpg
::
CurrentKeyChain
.
add
(
gpg_key
.
key
)
@verified_signature
=
nil
end
yield
gpg_key
...
...
@@ -58,7 +58,7 @@ module Gitlab
def
verified_signature
@verified_signature
||=
GPGME
::
Crypto
.
new
.
verify
(
@signature_text
,
signed_text:
@signed_text
)
do
|
verified_signature
|
return
verified_signature
break
verified_signature
end
end
...
...
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