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
af5ea92c
Commit
af5ea92c
authored
Apr 07, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into login_page
Conflicts: CHANGELOG
parents
aea3712e
38ae34a3
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
27 deletions
+30
-27
CHANGELOG
CHANGELOG
+1
-0
Procfile
Procfile
+1
-1
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+5
-5
app/models/merge_request.rb
app/models/merge_request.rb
+1
-1
app/views/devise/sessions/_oauth_providers.html.haml
app/views/devise/sessions/_oauth_providers.html.haml
+1
-1
app/views/projects/notes/_discussion.html.haml
app/views/projects/notes/_discussion.html.haml
+5
-16
db/migrate/20140407135544_fix_namespaces.rb
db/migrate/20140407135544_fix_namespaces.rb
+10
-0
db/schema.rb
db/schema.rb
+1
-1
lib/support/nginx/gitlab
lib/support/nginx/gitlab
+5
-2
No files found.
CHANGELOG
View file @
af5ea92c
...
...
@@ -11,6 +11,7 @@ v 6.8.0
- Fix popen bug in `rake gitlab:satellites:create`
- Disable connection reaping for MySQL
- Allow oauth signup without email for twitter and github
- Fix faulty namespace names that caused 500 on user creation
- Option to disable standard login
v 6.7.3
...
...
Procfile
View file @
af5ea92c
web: bundle exec unicorn_rails -p $
PORT -E development -c config/unicorn_development.rb
web: bundle exec unicorn_rails -p $
{PORT} -E ${RAILS_ENV} -c ${UNICORN_CONFIG:="config/unicorn.rb"}
worker: bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default,gitlab_shell
app/controllers/projects/merge_requests_controller.rb
View file @
af5ea92c
...
...
@@ -216,7 +216,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def
allowed_to_merge?
allowed_to_push_code?
(
project
)
allowed_to_push_code?
(
project
,
@merge_request
.
target_branch
)
end
def
invalid_mr
...
...
@@ -225,17 +225,17 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def
allowed_to_remove_source_branch?
allowed_to_push_code?
(
@merge_request
.
source_project
)
&&
allowed_to_push_code?
(
@merge_request
.
source_project
,
@merge_request
.
source_branch
)
&&
!
@merge_request
.
disallow_source_branch_removal?
end
def
allowed_to_push_code?
(
project
)
action
=
if
project
.
protected_branch?
(
@merge_request
.
target_
branch
)
def
allowed_to_push_code?
(
project
,
branch
)
action
=
if
project
.
protected_branch?
(
branch
)
:push_code_to_protected_branches
else
:push_code
end
can?
(
current_user
,
action
,
@
project
)
can?
(
current_user
,
action
,
project
)
end
end
app/models/merge_request.rb
View file @
af5ea92c
...
...
@@ -210,7 +210,7 @@ class MergeRequest < ActiveRecord::Base
end
def
disallow_source_branch_removal?
(
source_project
.
root_ref?
source_branch
)
||
for_fork?
source_project
.
root_ref?
(
source_branch
)
||
source_project
.
protected_branches
.
include?
(
source_branch
)
end
def
project
...
...
app/views/devise/sessions/_oauth_providers.html.haml
View file @
af5ea92c
...
...
@@ -2,7 +2,7 @@
-
if
providers
.
present?
%hr
%div
{
:'data-no-turbolink'
=>
'data-no-turbolink'
}
%span
Sign in with
*
:
%span
Sign in with:
-
providers
.
each
do
|
provider
|
%span
-
if
default_providers
.
include?
(
provider
)
...
...
app/views/projects/notes/_discussion.html.haml
View file @
af5ea92c
-
note
=
discussion_notes
.
first
.discussion.js-
details-container.js-toggler-container.open
{
class:
note
.
discussion_id
}
.discussion.js-
toggle-container
{
class:
note
.
discussion_id
}
.discussion-header
.discussion-actions
=
link_to
"javascript:;"
,
class:
"js-details-target turn-on js-toggler-target"
do
%i
.icon-eye-close
Hide discussion
=
link_to
"javascript:;"
,
class:
"js-details-target turn-off js-toggler-target"
do
%i
.icon-eye-open
Show discussion
=
link_to
"#"
,
class:
"js-toggle-button"
do
%i
.icon-chevron-up
Show/hide discussion
=
image_tag
avatar_icon
(
note
.
author_email
),
class:
"avatar s32"
%div
=
link_to_member
(
@project
,
note
.
author
,
avatar:
false
)
...
...
@@ -33,7 +30,7 @@
=
link_to_member
(
@project
,
last_note
.
author
,
avatar:
false
)
%span
.discussion-last-update
#{
time_ago_with_tooltip
(
last_note
.
updated_at
,
'bottom'
,
'discussion_updated_ago'
)
}
.discussion-body
.discussion-body
.js-toggle-content
-
if
note
.
for_diff_line?
-
if
note
.
active?
=
render
"projects/notes/discussion_diff"
,
discussion_notes:
discussion_notes
,
note:
note
...
...
@@ -47,11 +44,3 @@
.notes
{
rel:
discussion_notes
.
first
.
discussion_id
}
=
render
discussion_notes
=
render
"projects/notes/discussion_reply_button"
,
note:
discussion_notes
.
first
-# will be shown when the other one is hidden
.discussion-hidden.content.hide
.note
%em
Hidden discussion.
=
link_to
"javascript:;"
,
class:
"js-details-target js-toggler-target"
do
%i
.icon-eye-open
Show
db/migrate/20140407135544_fix_namespaces.rb
0 → 100644
View file @
af5ea92c
class
FixNamespaces
<
ActiveRecord
::
Migration
def
up
Namespace
.
where
(
'name <> path and type is null'
).
each
do
|
namespace
|
namespace
.
update_attribute
(
:name
,
namespace
.
path
)
end
end
def
down
end
end
\ No newline at end of file
db/schema.rb
View file @
af5ea92c
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20140
313092127
)
do
ActiveRecord
::
Schema
.
define
(
version:
20140
407135544
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
lib/support/nginx/gitlab
View file @
af5ea92c
...
...
@@ -42,6 +42,10 @@ server {
# if a file, which is not found in the root folder is requested,
# then the proxy pass the request to the upsteam (gitlab unicorn)
location @gitlab {
# If you use https make sure you disable gzip compression
# to be safe against BREACH attack
# gzip off;
proxy_read_timeout 300; # Some requests take more than 30 seconds.
proxy_connect_timeout 300; # Some requests take more than 30 seconds.
proxy_redirect off;
...
...
@@ -64,4 +68,3 @@ server {
error_page 502 /502.html;
}
\ No newline at end of file
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