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
facfec4b
Commit
facfec4b
authored
Jul 29, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-release' into '7-1-stable'
Patch release Part of #1470 See merge request !1000
parents
1ddca461
7816360c
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
49 additions
and
15 deletions
+49
-15
CHANGELOG
CHANGELOG
+5
-0
VERSION
VERSION
+1
-1
app/assets/javascripts/markdown_area.js.coffee
app/assets/javascripts/markdown_area.js.coffee
+15
-4
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-1
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
+6
-2
app/models/merge_request.rb
app/models/merge_request.rb
+1
-1
app/models/repository.rb
app/models/repository.rb
+16
-0
app/services/merge_requests/build_service.rb
app/services/merge_requests/build_service.rb
+0
-1
app/views/layouts/_public_head_panel.html.haml
app/views/layouts/_public_head_panel.html.haml
+2
-2
app/views/projects/commits/_diff_file.html.haml
app/views/projects/commits/_diff_file.html.haml
+2
-3
No files found.
CHANGELOG
View file @
facfec4b
v 7.1.1
- Fix cpu usage issue in Firefox
- Fix redirect loop when changing password by new user
- Fix 500 error on new merge request page
v 7.1.0
- Remove observers
- Improve MR discussions
...
...
VERSION
View file @
facfec4b
7.1.
0
7.1.
1
app/assets/javascripts/markdown_area.js.coffee
View file @
facfec4b
...
...
@@ -20,6 +20,9 @@ $(document).ready ->
$
(
".div-dropzone-hover"
).
append
iconPicture
$
(
".div-dropzone"
).
append
divSpinner
$
(
".div-dropzone-spinner"
).
append
iconSpinner
$
(
".div-dropzone-spinner"
).
css
"opacity"
:
0
"display"
:
"none"
dropzone
=
$
(
".div-dropzone"
).
dropzone
(
url
:
project_image_path_upload
...
...
@@ -66,13 +69,17 @@ $(document).ready ->
return
sending
:
->
$
(
".div-dropzone-spinner"
).
css
"opacity"
,
0.7
$
(
".div-dropzone-spinner"
).
css
"opacity"
:
0.7
"display"
:
"inherit"
return
complete
:
->
$
(
".dz-preview"
).
remove
()
$
(
".markdown-area"
).
trigger
"input"
$
(
".div-dropzone-spinner"
).
css
"opacity"
,
0
$
(
".div-dropzone-spinner"
).
css
"opacity"
:
0
"display"
:
"none"
return
)
...
...
@@ -163,10 +170,14 @@ $(document).ready ->
val
+
url
+
"
\n
"
showSpinner
=
(
e
)
->
$
(
".div-dropzone-spinner"
).
css
"opacity"
,
0.7
$
(
".div-dropzone-spinner"
).
css
"opacity"
:
0.7
"display"
:
"inherit"
closeSpinner
=
->
$
(
".div-dropzone-spinner"
).
css
"opacity"
,
0
$
(
".div-dropzone-spinner"
).
css
"opacity"
:
0
"display"
:
"none"
showError
=
(
message
)
->
checkIfMsgExists
=
$
(
".error-alert"
).
children
().
length
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
facfec4b
...
...
@@ -70,7 +70,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@target_project
=
merge_request
.
target_project
@source_project
=
merge_request
.
source_project
@commits
=
@merge_request
.
compare_commits
@commit
=
@merge_request
.
compare_
base_commi
t
@commit
=
@merge_request
.
compare_
commits
.
las
t
@diffs
=
@merge_request
.
compare_diffs
@note_counts
=
Note
.
where
(
commit_id:
@commits
.
map
(
&
:id
)).
group
(
:commit_id
).
count
...
...
app/controllers/sessions_controller.rb
View file @
facfec4b
class
SessionsController
<
Devise
::
SessionsController
def
new
redirect_
url
=
if
request
.
referer
.
present?
redirect_
path
=
if
request
.
referer
.
present?
&&
(
params
[
'redirect_to_referer'
]
==
'yes'
)
referer_uri
=
URI
(
request
.
referer
)
if
referer_uri
.
host
==
Gitlab
.
config
.
gitlab
.
host
referer_uri
.
path
...
...
@@ -12,7 +12,11 @@ class SessionsController < Devise::SessionsController
request
.
fullpath
end
store_location_for
(
:redirect
,
redirect_url
)
# Prevent a 'you are already signed in' message directly after signing:
# we should never redirect to '/users/sign_in' after signing in successfully.
unless
redirect_path
==
'/users/sign_in'
store_location_for
(
:redirect
,
redirect_path
)
end
super
end
...
...
app/models/merge_request.rb
View file @
facfec4b
...
...
@@ -44,7 +44,7 @@ class MergeRequest < ActiveRecord::Base
# Temporary fields to store compare vars
# when creating new merge request
attr_accessor
:can_be_created
,
:compare_failed
,
:compare_base_commit
,
attr_accessor
:can_be_created
,
:compare_failed
,
:compare_commits
,
:compare_diffs
ActsAsTaggableOn
.
strict_case_match
=
true
...
...
app/models/repository.rb
View file @
facfec4b
...
...
@@ -263,4 +263,20 @@ class Repository
contributor
end
end
def
blob_for_diff
(
commit
,
diff
)
file
=
blob_at
(
commit
.
id
,
diff
.
new_path
)
unless
file
file
=
prev_blob_for_diff
(
commit
,
diff
)
end
file
end
def
prev_blob_for_diff
(
commit
,
diff
)
if
commit
.
parent_id
blob_at
(
commit
.
parent_id
,
diff
.
old_path
)
end
end
end
app/services/merge_requests/build_service.rb
View file @
facfec4b
...
...
@@ -34,7 +34,6 @@ module MergeRequests
# If we have at least one commit to merge -> creation allowed
if
commits
.
present?
merge_request
.
compare_commits
=
Commit
.
decorate
(
commits
)
merge_request
.
compare_base_commit
=
Commit
.
new
(
commits
.
first
)
merge_request
.
can_be_created
=
true
merge_request
.
compare_failed
=
false
...
...
app/views/layouts/_public_head_panel.html.haml
View file @
facfec4b
...
...
@@ -13,10 +13,10 @@
%i
.icon-reorder
.pull-right.hidden-xs
=
link_to
"Sign in"
,
new_session_path
(
:user
),
class:
'btn btn-sign-in btn-new'
=
link_to
"Sign in"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in btn-new'
.navbar-collapse.collapse
%ul
.nav.navbar-nav
%li
.visible-xs
=
link_to
"Sign in"
,
new_session_path
(
:user
)
=
link_to
"Sign in"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
)
app/views/projects/commits/_diff_file.html.haml
View file @
facfec4b
-
file
=
project
.
repository
.
blob_at
(
@commit
.
id
,
diff
.
new_path
)
-
file
=
project
.
repository
.
blob_at
(
@commit
.
parent_id
,
diff
.
old_path
)
unless
file
-
file
=
project
.
repository
.
blob_for_diff
(
@commit
,
diff
)
-
return
unless
file
.diff-file
{
id:
"diff-#{i}"
}
.diff-header
{
id:
"file-path-#{hexdigest(diff.new_path || diff.old_path)}"
}
...
...
@@ -41,7 +40,7 @@
-
else
=
render
"projects/commits/text_file"
,
diff:
diff
,
index:
i
-
elsif
file
.
image?
-
old_file
=
project
.
repository
.
blob_at
(
@commit
.
parent_id
,
diff
.
old_path
)
if
@commit
.
parent_id
-
old_file
=
project
.
repository
.
prev_blob_for_diff
(
@commit
,
diff
)
=
render
"projects/commits/image"
,
diff:
diff
,
old_file:
old_file
,
file:
file
,
index:
i
-
else
.nothing-here-block
No preview for this file type
...
...
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