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
d1101ec0
Commit
d1101ec0
authored
Jun 12, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use more descriptive variable names
parent
8bd94a73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
app/models/commit.rb
app/models/commit.rb
+8
-5
No files found.
app/models/commit.rb
View file @
d1101ec0
...
...
@@ -237,13 +237,16 @@ class Commit
def
signature
return
@signature
if
defined?
(
@signature
)
sig
,
signed
=
@raw
.
signature
(
project
.
repository
)
if
sig
&&
signed
GPGME
::
Crypto
.
new
.
verify
(
sig
,
signed_text:
signed
)
do
|
sign
|
@signature
=
sign
@signature
=
nil
signature
,
signed_text
=
@raw
.
signature
(
project
.
repository
)
if
signature
&&
signed_text
GPGME
::
Crypto
.
new
.
verify
(
signature
,
signed_text:
signed_text
)
do
|
verified_signature
|
@signature
=
verified_signature
end
end
@signature
||=
nil
@signature
end
def
revert_branch_name
...
...
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