Skip to content

Commit

Permalink
Only search gitlab:import:repos on repos on subdir
Browse files Browse the repository at this point in the history
of type `repos_path/group/repo.git`.

Before this, any other location like `repos_path/repo.git`
or `repos_path/group/XXX/repo.git` does generate new projects, but
these projects are empty since no copy is done.
  • Loading branch information
cirosantilli committed Oct 23, 2014
1 parent 1c1d9f7 commit d80b720
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions doc/raketasks/import.md
Expand Up @@ -11,8 +11,14 @@ Notes:

How to use:

1. copy your bare repos under git repos_path (see `config/gitlab.yml` gitlab_shell -> repos_path)
1. run the command below
1. copy your bare repos under a subdirectory of the git repos_path
(see `config/gitlab.yml` gitlab_shell -> repos_path)

For example: `repositories/new-group/repository.git`.

The repository path must end in `.git`.

1. run the command below

```
# omnibus-gitlab
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/gitlab/import.rake
Expand Up @@ -13,7 +13,7 @@ namespace :gitlab do
task repos: :environment do

git_base_path = Gitlab.config.gitlab_shell.repos_path
repos_to_import = Dir.glob(git_base_path + '/**/*.git')
repos_to_import = Dir.glob(git_base_path + '/*/*.git')

namespaces = Namespace.pluck(:path)

Expand Down

0 comments on commit d80b720

Please sign in to comment.