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
22761124
Commit
22761124
authored
Oct 18, 2021
by
Gerardo Gutierrez
Committed by
Evan Read
Oct 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alternate method to check repository name from hash
parent
805a2f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
doc/administration/repository_storage_types.md
doc/administration/repository_storage_types.md
+14
-2
No files found.
doc/administration/repository_storage_types.md
View file @
22761124
...
...
@@ -101,8 +101,12 @@ To look up a project's hash path using a Rails console:
#### From hashed path to project name
Administrators can look up a project's name from its hashed storage path using a Rails console. To
look up a project's name from its hashed storage path:
Administrators can look up a project's name from its hashed storage path using:
-
A Rails console.
-
The
`config`
file in the
`*.git`
directory.
To look up a project's name using the Rails console:
1.
Start a
[
Rails console
](
operations/rails_console.md#starting-a-rails-console-session
)
.
1.
Run a command similar to this example:
...
...
@@ -121,6 +125,14 @@ The output includes the project ID and the project name. For example:
=> #<Project id:16 it/supportteam/ticketsystem>
```
To look up a project's name using the
`config`
file in the
`*.git`
directory:
1.
Navigate to the to the
`*.git`
directory. This directory is located in
`/var/opt/gitlab/git-data/repositories/@hashed/`
, where the first four
characters of the hash are the first two directories in the path under
`@hashed/`
. For example, on a default Omnibus GitLab installation the
`*.git`
directory of the hash
`b17eb17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9`
would be
`/var/opt/gitlab/git-data/repositories/@hashed/b1/7e/b17ef6d19c7a5b1ee83b907c595526dcb1eb06db8227d650d5dda0a9f4ce8cd9.git`
.
1.
Open the
`config`
file and locate the
`fullpath=`
key under
`[gitlab]`
.
### Hashed object pools
> [Introduced](https://gitlab.com/gitlab-org/gitaly/-/issues/1606) in GitLab 12.1.
...
...
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