Rename functions to set repository's full path
In order to make it easy for an admin to see which project a given repository belongs to with hashed storages, we always write the project path (e.g. "gitlab-com/gitlab") into the repo's gitconfig. This is done via `#write_repository_config()` and `#write_config()`, both of which only support writing this specific config entry. Rename both functions to make it clear that they only support writing the path. Direct access to the gitconfig is going away soon anyway, so these functions can never be extended to write additional config entries.
显示
- app/models/namespace.rb 1 个添加, 1 个删除app/models/namespace.rb
- app/models/project.rb 3 个添加, 3 个删除app/models/project.rb
- app/services/projects/after_rename_service.rb 1 个添加, 1 个删除app/services/projects/after_rename_service.rb
- app/services/projects/create_service.rb 1 个添加, 1 个删除app/services/projects/create_service.rb
- app/services/projects/hashed_storage/migrate_repository_service.rb 1 个添加, 1 个删除...ces/projects/hashed_storage/migrate_repository_service.rb
- app/services/projects/hashed_storage/rollback_repository_service.rb 1 个添加, 1 个删除...es/projects/hashed_storage/rollback_repository_service.rb
- app/services/projects/transfer_service.rb 1 个添加, 1 个删除app/services/projects/transfer_service.rb
- doc/raketasks/import.md 1 个添加, 1 个删除doc/raketasks/import.md
- lib/gitlab/bare_repository_import/importer.rb 1 个添加, 1 个删除lib/gitlab/bare_repository_import/importer.rb
- lib/gitlab/git/repository.rb 1 个添加, 1 个删除lib/gitlab/git/repository.rb
- spec/lib/gitlab/git/repository_spec.rb 5 个添加, 5 个删除spec/lib/gitlab/git/repository_spec.rb
- spec/models/project_spec.rb 6 个添加, 6 个删除spec/models/project_spec.rb
- spec/services/projects/create_service_spec.rb 1 个添加, 1 个删除spec/services/projects/create_service_spec.rb
- spec/services/projects/hashed_storage/migrate_repository_service_spec.rb 2 个添加, 2 个删除...rojects/hashed_storage/migrate_repository_service_spec.rb
- spec/services/projects/hashed_storage/rollback_repository_service_spec.rb 2 个添加, 2 个删除...ojects/hashed_storage/rollback_repository_service_spec.rb
加载中
想要评论请 注册 或 登录