diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-12-19 14:36:33 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 16:13:31 -0200 |
commit | 9504a529b758b0352b9c60d67fda8b4ee2a5fec0 (patch) | |
tree | fb83470abf88a850895e986be4e9c8ba544ec326 /spec/services | |
parent | 946a3634bc5a851944e5cc7fe8fdb5341ca5176b (diff) | |
download | gitlab-ce-9504a529b758b0352b9c60d67fda8b4ee2a5fec0.tar.gz |
Write project full path to .git/config when creating projects
We'd need to keep track of project full path otherwise directory tree created with hashed storage enabled cannot be usefully imported using the import rake task.
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/projects/create_service_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/projects/create_service_spec.rb b/spec/services/projects/create_service_spec.rb index dc89fdebce7..1833078f37c 100644 --- a/spec/services/projects/create_service_spec.rb +++ b/spec/services/projects/create_service_spec.rb @@ -252,6 +252,12 @@ describe Projects::CreateService, '#execute' do end end + it 'writes project full path to .git/config' do + project = create_project(user, opts) + + expect(project.repo.config['gitlab.fullpath']).to eq project.full_path + end + def create_project(user, opts) Projects::CreateService.new(user, opts).execute end |