Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
b44999acfa67
Commit
160324d0
authored
Nov 15, 2017
by
micael.bergeron
Browse files
try to fix the failing spec on external refs
parent
38ffd1bc7b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/commit.rb
View file @
b44999ac
...
@@ -26,7 +26,7 @@ class Commit
...
@@ -26,7 +26,7 @@ class Commit
DIFF_HARD_LIMIT_LINES
=
50000
DIFF_HARD_LIMIT_LINES
=
50000
MIN_SHA_LENGTH
=
7
MIN_SHA_LENGTH
=
7
COMMIT_SHA_PATTERN
=
/
\b
(?<![~#!@:])\h{
#{
MIN_SHA_LENGTH
}
,40}/
.
freeze
COMMIT_SHA_PATTERN
=
/(?<!
\s
[~#!@:])\h{
#{
MIN_SHA_LENGTH
}
,40}/
.
freeze
def
banzai_render_context
(
field
)
def
banzai_render_context
(
field
)
context
=
{
pipeline: :single_line
,
project:
self
.
project
}
context
=
{
pipeline: :single_line
,
project:
self
.
project
}
...
...
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