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
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
Show 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
...
@@ -237,13 +237,16 @@ class Commit
def
signature
def
signature
return
@signature
if
defined?
(
@signature
)
return
@signature
if
defined?
(
@signature
)
sig
,
signed
=
@raw
.
signature
(
project
.
repository
)
@signature
=
nil
if
sig
&&
signed
GPGME
::
Crypto
.
new
.
verify
(
sig
,
signed_text:
signed
)
do
|
sign
|
signature
,
signed_text
=
@raw
.
signature
(
project
.
repository
)
@signature
=
sign
if
signature
&&
signed_text
GPGME
::
Crypto
.
new
.
verify
(
signature
,
signed_text:
signed_text
)
do
|
verified_signature
|
@signature
=
verified_signature
end
end
end
end
@signature
||=
nil
@signature
end
end
def
revert_branch_name
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