BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a113ce48
Commit
a113ce48
authored
Dec 23, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-500-after-merge' into 'master'
Fix 500 on MR diff page after merge and branch was removed Fixes #1847 See merge request !1345
parents
554719d9
90ed76ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
tree_helper.rb
app/helpers/tree_helper.rb
+8
-1
No files found.
app/helpers/tree_helper.rb
View file @
a113ce48
...
@@ -66,7 +66,14 @@ module TreeHelper
...
@@ -66,7 +66,14 @@ module TreeHelper
end
end
def
edit_blob_link
(
project
,
ref
,
path
,
options
=
{})
def
edit_blob_link
(
project
,
ref
,
path
,
options
=
{})
if
project
.
repository
.
blob_at
(
ref
,
path
).
text?
blob
=
begin
project
.
repository
.
blob_at
(
ref
,
path
)
rescue
nil
end
if
blob
&&
blob
.
text?
text
=
'Edit'
text
=
'Edit'
after
=
options
[
:after
]
||
''
after
=
options
[
:after
]
||
''
from_mr
=
options
[
:from_merge_request_id
]
from_mr
=
options
[
:from_merge_request_id
]
...
...
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