Add comment to explain why gl_repository is blank
During creation of a repository, gl_repository may not be known because that depends on a yet-to-be assigned project ID in the database (e.g. project-1234), so for now it is blank.
This commit is contained in:
parent
59a7d67fb9
commit
1af22dbe5c
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ module Gitlab
|
||||||
relative_path = disk_path.dup
|
relative_path = disk_path.dup
|
||||||
relative_path << '.git' unless relative_path.end_with?('.git')
|
relative_path << '.git' unless relative_path.end_with?('.git')
|
||||||
|
|
||||||
|
# During creation of a repository, gl_repository may not be known
|
||||||
|
# because that depends on a yet-to-be assigned project ID in the
|
||||||
|
# database (e.g. project-1234), so for now it is blank.
|
||||||
repository = Gitlab::Git::Repository.new(storage, relative_path, '', gl_project_name)
|
repository = Gitlab::Git::Repository.new(storage, relative_path, '', gl_project_name)
|
||||||
wrapped_gitaly_errors { repository.gitaly_repository_client.create_repository }
|
wrapped_gitaly_errors { repository.gitaly_repository_client.create_repository }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue