Commit graph

21 commits

Author SHA1 Message Date
Jacob Vosmaer (GitLab)
a0808df0b6 Find and mark more Git disk access locations 2018-06-05 15:51:14 +00:00
Zeger-Jan van de Weg
ec4423665c
Gitlab::Shell works on shard name, not path
Direct disk access is done through Gitaly now, so the legacy path was
deprecated. This path was used in Gitlab::Shell however. This required
the refactoring in this commit.

Added is the removal of direct path access on the project model, as that
lookup wasn't needed anymore is most cases.

Closes https://gitlab.com/gitlab-org/gitaly/issues/1111
2018-04-25 13:36:22 +02:00
Sean McGivern
bb9d360c0a Merge branch 'mark-legacy-git-access' into 'master'
Route path lookups through legacy_disk_path

See merge request gitlab-org/gitlab-ce!17743
2018-03-23 10:20:45 +00:00
Jacob Vosmaer
008a6a6ce6 Route path lookups through legacy_disk_path 2018-03-21 18:18:32 +01:00
Zeger-Jan van de Weg
77f0906e4c
Change Gitlab::Shell#add_namespace to #create_namespace
Prior to this change, this method was called add_namespace, which broke
the CRUD convention and made it harder to grep for what I was looking
for. Given the change was a find and replace kind of fix, this was
changed without opening an issue and on another feature branch.

If more dynamic calls are made to add_namespace, these could've been
missed which might lead to incorrect bahaviour. However, going through
the commit log it seems thats not the case.
2018-03-14 09:56:22 +01:00
Nick Thomas
6b0c6e69e1
Use hashed storage in the specs 2018-02-07 13:40:46 +00:00
Stan Hu
35d3411f77 Fix hooks not being set up properly for bare import Rake task
Closes #41739
2018-01-09 23:39:19 -08:00
Douglas Barbosa Alexandre
08de4746dc Refactoring Gitlab::BareRepositoryImport::Repository 2018-01-03 16:22:00 -02:00
Douglas Barbosa Alexandre
3f5403ab74 Remove unused variable from bare repository importer spec 2018-01-03 16:17:11 -02:00
Douglas Barbosa Alexandre
62ee2ccfcc Refactoring spec for Gitlab::BareRepositoryImport::Repository 2018-01-03 16:13:32 -02:00
Douglas Barbosa Alexandre
58c2f3b579 Fix Repository#processable? to allow .git repos in the root folder 2018-01-03 16:13:32 -02:00
Douglas Barbosa Alexandre
582678b5f5 Import directory tree created with hashed storage using import rake task 2018-01-03 16:13:32 -02:00
James Lopez
f2d4b24a94 refactor code to use new import type 2018-01-03 09:10:43 +01:00
James Lopez
54f00b7487 fix wiki check 2018-01-02 10:42:18 +01:00
James Lopez
9d0bceb3f0 add extra spec check 2018-01-02 10:42:18 +01:00
James Lopez
02276f7a70 Fix import scheduled on bare repo import 2018-01-02 10:42:18 +01:00
Stan Hu
f1eaab7bf1 Remove the need for destroy and add a comment in the spec 2017-12-10 23:41:28 -08:00
Stan Hu
86661a3a0b Use build instead of create in importer spec 2017-12-10 23:38:55 -08:00
Stan Hu
e8cced8077 Fix failing importer test case on MySQL due to missing trailing slash in root path 2017-12-08 16:48:24 -08:00
Stan Hu
78f7c3c8a2 Fix gitlab:import:repos Rake task moving repositories into the wrong location
If the source import directory were different from the destination directory,
GitLab would first create a blank repository and then erroneously move the
original one into a subdirectory. Adding an import type prevents this the project
from being initialized in the first place. It was accidentally removed in
1f917cbd49.

Closes #40765
2017-12-08 14:56:43 -08:00
James Lopez
1c8af321dd Improve GitLab Import rake task to work with Hashed Storage and Subgroups 2017-11-07 19:11:42 +00:00