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
iv
gitlab-ce
Commits
95f0a411
Commit
95f0a411
authored
Sep 25, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Refs#switch
parent
33126227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/controllers/refs_controller.rb
app/controllers/refs_controller.rb
+4
-4
No files found.
app/controllers/refs_controller.rb
View file @
95f0a411
...
@@ -13,9 +13,9 @@ class RefsController < ApplicationController
...
@@ -13,9 +13,9 @@ class RefsController < ApplicationController
layout
"project"
layout
"project"
def
switch
def
switch
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
do
format
.
html
do
new_path
=
if
params
[
:destination
]
==
"tree"
new_path
=
if
params
[
:destination
]
==
"tree"
project_tree_path
(
@project
,
@ref
)
project_tree_path
(
@project
,
@ref
)
else
else
...
@@ -69,6 +69,6 @@ class RefsController < ApplicationController
...
@@ -69,6 +69,6 @@ class RefsController < ApplicationController
end
end
def
ref
def
ref
@ref
=
params
[
:
id
]
@ref
=
params
[
:
ref
]
end
end
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