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
58bf2418
Commit
58bf2418
authored
Jan 10, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix object pool specs
parent
9d4558ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
app/models/pool_repository.rb
app/models/pool_repository.rb
+3
-1
lib/gitlab/git/object_pool.rb
lib/gitlab/git/object_pool.rb
+4
-3
No files found.
app/models/pool_repository.rb
View file @
58bf2418
...
...
@@ -96,7 +96,9 @@ class PoolRepository < ActiveRecord::Base
@object_pool
||=
Gitlab
::
Git
::
ObjectPool
.
new
(
shard
.
name
,
disk_path
+
'.git'
,
source_project
.
repository
.
raw
)
source_project
.
repository
.
raw
,
source_project
.
full_path
)
end
def
inspect
...
...
lib/gitlab/git/object_pool.rb
View file @
58bf2418
...
...
@@ -10,12 +10,13 @@ module Gitlab
delegate
:exists?
,
:size
,
to: :repository
delegate
:unlink_repository
,
:delete
,
to: :object_pool_service
attr_reader
:storage
,
:relative_path
,
:source_repository
attr_reader
:storage
,
:relative_path
,
:source_repository
,
:gl_project_name
def
initialize
(
storage
,
relative_path
,
source_repository
)
def
initialize
(
storage
,
relative_path
,
source_repository
,
gl_project_name
)
@storage
=
storage
@relative_path
=
relative_path
@source_repository
=
source_repository
@gl_project_name
=
gl_project_name
end
def
create
...
...
@@ -31,7 +32,7 @@ module Gitlab
end
def
to_gitaly_repository
Gitlab
::
GitalyClient
::
Util
.
repository
(
storage
,
relative_path
,
GL_REPOSITORY
)
Gitlab
::
GitalyClient
::
Util
.
repository
(
storage
,
relative_path
,
GL_REPOSITORY
,
gl_project_name
)
end
# Allows for reusing other RPCs by 'tricking' Gitaly to think its a repository
...
...
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