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
225772cb
Commit
225772cb
authored
Jul 11, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts
parent
05292794
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
34 deletions
+1
-34
config/README.md
config/README.md
+0
-4
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+0
-4
lib/gitlab/lfs_token.rb
lib/gitlab/lfs_token.rb
+0
-10
scripts/prepare_build.sh
scripts/prepare_build.sh
+1
-9
spec/lib/gitlab/current_settings_spec.rb
spec/lib/gitlab/current_settings_spec.rb
+0
-4
spec/requests/api/internal_spec.rb
spec/requests/api/internal_spec.rb
+0
-3
No files found.
config/README.md
View file @
225772cb
...
@@ -19,11 +19,7 @@ an ERB file and then loads the resulting YML as its configuration.
...
@@ -19,11 +19,7 @@ an ERB file and then loads the resulting YML as its configuration.
This file is called
`resque.yml`
for historical reasons. We are
**NOT**
This file is called
`resque.yml`
for historical reasons. We are
**NOT**
using Resque at the moment. It is used to specify Redis configuration
using Resque at the moment. It is used to specify Redis configuration
<<<<<<< HEAD
values instead when a single database instance of Redis is desired.
=======
values when a single database instance of Redis is desired.
values when a single database instance of Redis is desired.
>>>>>>> ce-com/master
# Advanced Redis configuration files
# Advanced Redis configuration files
...
...
config/initializers/sidekiq.rb
View file @
225772cb
...
@@ -78,9 +78,5 @@ begin
...
@@ -78,9 +78,5 @@ begin
end
end
end
end
end
end
<<<<<<<
HEAD
rescue
::
Redis
::
BaseError
,
SocketError
,
Errno
::
ENOENT
,
Errno
::
EAFNOSUPPORT
,
Errno
::
ECONNRESET
,
Errno
::
ECONNREFUSED
=======
rescue
Redis
::
BaseError
,
SocketError
,
Errno
::
ENOENT
,
Errno
::
EADDRNOTAVAIL
,
Errno
::
EAFNOSUPPORT
,
Errno
::
ECONNRESET
,
Errno
::
ECONNREFUSED
rescue
Redis
::
BaseError
,
SocketError
,
Errno
::
ENOENT
,
Errno
::
EADDRNOTAVAIL
,
Errno
::
EAFNOSUPPORT
,
Errno
::
ECONNRESET
,
Errno
::
ECONNREFUSED
>>>>>>>
ce
-
com
/
master
end
end
lib/gitlab/lfs_token.rb
View file @
225772cb
...
@@ -20,18 +20,8 @@ module Gitlab
...
@@ -20,18 +20,8 @@ module Gitlab
def
token
def
token
Gitlab
::
Redis
::
SharedState
.
with
do
|
redis
|
Gitlab
::
Redis
::
SharedState
.
with
do
|
redis
|
token
=
redis
.
get
(
redis_shared_state_key
)
token
=
redis
.
get
(
redis_shared_state_key
)
<<<<<<<
HEAD
if
token
redis
.
expire
(
redis_shared_state_key
,
EXPIRY_TIME
)
else
token
=
Devise
.
friendly_token
(
TOKEN_LENGTH
)
redis
.
set
(
redis_shared_state_key
,
token
,
ex:
EXPIRY_TIME
)
end
=======
token
||=
Devise
.
friendly_token
(
TOKEN_LENGTH
)
token
||=
Devise
.
friendly_token
(
TOKEN_LENGTH
)
redis
.
set
(
redis_shared_state_key
,
token
,
ex:
EXPIRY_TIME
)
redis
.
set
(
redis_shared_state_key
,
token
,
ex:
EXPIRY_TIME
)
>>>>>>>
ce
-
com
/
master
token
token
end
end
...
...
scripts/prepare_build.sh
View file @
225772cb
...
@@ -8,14 +8,9 @@ if [ "$USE_BUNDLE_INSTALL" != "false" ]; then
...
@@ -8,14 +8,9 @@ if [ "$USE_BUNDLE_INSTALL" != "false" ]; then
bundle
install
--clean
$BUNDLE_INSTALL_FLAGS
&&
bundle check
bundle
install
--clean
$BUNDLE_INSTALL_FLAGS
&&
bundle check
fi
fi
# Only install
fog-aws/mime-types
after bundle install! Otherwise oddly some native
# Only install
knapsack
after bundle install! Otherwise oddly some native
# gems could not be found under some circumstance. No idea why, hours wasted.
# gems could not be found under some circumstance. No idea why, hours wasted.
<<<<<<
< HEAD
retry gem
install
knapsack fog-aws mime-types
retry gem
install
knapsack fog-aws mime-types
=======
# TODO: remove workaround on !10156
retry gem
install
fog-aws mime-types
>>>>>>>
ce-com/master
cp
config/gitlab.yml.example config/gitlab.yml
cp
config/gitlab.yml.example config/gitlab.yml
...
@@ -50,12 +45,9 @@ else # Assume it's mysql
...
@@ -50,12 +45,9 @@ else # Assume it's mysql
sed
-i
's/# host:.*/host: mysql/g'
config/database_geo.yml
sed
-i
's/# host:.*/host: mysql/g'
config/database_geo.yml
fi
fi
<<<<<<
< HEAD
=======
cp
config/resque.yml.example config/resque.yml
cp
config/resque.yml.example config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
>>>>>>>
ce-com/master
cp
config/redis.cache.yml.example config/redis.cache.yml
cp
config/redis.cache.yml.example config/redis.cache.yml
sed
-i
's/localhost/redis/g'
config/redis.cache.yml
sed
-i
's/localhost/redis/g'
config/redis.cache.yml
...
...
spec/lib/gitlab/current_settings_spec.rb
View file @
225772cb
...
@@ -26,13 +26,9 @@ describe Gitlab::CurrentSettings do
...
@@ -26,13 +26,9 @@ describe Gitlab::CurrentSettings do
expect
(
current_application_settings
).
to
be_a
(
ApplicationSetting
)
expect
(
current_application_settings
).
to
be_a
(
ApplicationSetting
)
end
end
<<<<<<<
HEAD
it
'falls back to DB if Caching fails'
do
it
'falls back to DB if Caching fails'
do
=======
it
'falls back to DB if Redis fails'
do
db_settings
=
ApplicationSetting
.
create!
(
ApplicationSetting
.
defaults
)
db_settings
=
ApplicationSetting
.
create!
(
ApplicationSetting
.
defaults
)
>>>>>>>
ce
-
com
/
master
expect
(
ApplicationSetting
).
to
receive
(
:cached
).
and_raise
(
::
Redis
::
BaseError
)
expect
(
ApplicationSetting
).
to
receive
(
:cached
).
and_raise
(
::
Redis
::
BaseError
)
expect
(
Rails
.
cache
).
to
receive
(
:fetch
).
with
(
ApplicationSetting
::
CACHE_KEY
).
and_raise
(
Redis
::
BaseError
)
expect
(
Rails
.
cache
).
to
receive
(
:fetch
).
with
(
ApplicationSetting
::
CACHE_KEY
).
and_raise
(
Redis
::
BaseError
)
...
...
spec/requests/api/internal_spec.rb
View file @
225772cb
...
@@ -168,7 +168,6 @@ describe API::Internal do
...
@@ -168,7 +168,6 @@ describe API::Internal do
end
end
end
end
<<<<<<<
HEAD
describe
"GET /internal/authorized_keys"
do
describe
"GET /internal/authorized_keys"
do
context
"unsing an existing key's fingerprint"
do
context
"unsing an existing key's fingerprint"
do
it
"finds the key"
do
it
"finds the key"
do
...
@@ -217,8 +216,6 @@ describe API::Internal do
...
@@ -217,8 +216,6 @@ describe API::Internal do
end
end
end
end
=======
>>>>>>>
ce
-
com
/
master
describe
"POST /internal/allowed"
,
:clean_gitlab_redis_shared_state
do
describe
"POST /internal/allowed"
,
:clean_gitlab_redis_shared_state
do
context
"access granted"
do
context
"access granted"
do
before
do
before
do
...
...
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