14

Support sub levels in GIT repositories

  • Live

Avatar
Dennis

It should be also possible to clone subgroups like: group/subgroup/repository.git

A

Activity Newest / Oldest

Avatar

Dennis

Status changed to: Live

Avatar

Dennis

So a user in our Discord recently helped us, we've issued out a fix. I would love for you guys to try it now, it should work now!


Avatar

Dennis

Status changed to: In progress

L

Lukas

we're also eagerly waiting for subgroups support! is there any additional info that we could provide to help tackle it?


Avatar

Dennis

I've yet failed to replicate this case sadly when using sub-groups. It just seems to work for me.

If it would be possible for anyone to setup a repo and give me the exact workflow steps to replicate we can take a closer look at it again.


L

Lukas

Here is an example repository in that format:
gitlab.com/ploi-group/sub-group/nested-nodejs-project

When trying to add a repository to a site that is within a subgroup on gitlab.com, ploi creates the wrong repository url and subsequently is unable to locate the repository.
example:
I select the target repo from the dropdown: /ploi-group/sub-group/nested-nodejs-project

The dropdown shows the right structure. I click next and set up the deploy script.
If I now look at the repository settings the repository URL has changed to /ploi-group/sub-group.git instead of pointing to the actual repository within the sub-group


D

Dewesoft

Our company has all its repositories in subgroups, so we are really missing this feature. Can this please get a higher priority?


Avatar

Dennis

Yes, it was scheduled for this week as we had another user came across the same issue last week.


Avatar

Dennis

Can you tell me, how you clone the repository? It seems to be working for me.


D

Dewesoft

For example:
1. I go to create a new site, input the domain and click Add site
2. Chose to use a GIT repo, select GitLab integration and from the list select a repo. The repos are listed as group/sub-group/repo.git
4. After the submit the repo is changed to group/sub-group.git by the Ploi system


Avatar

Dennis

But is this a sub branch? Because you can select the main repository and then group in branches in the input field.

Can you show me a screenshot how you're cloning the repository?


  • T
D

Dewesoft

On the "2 - Install repo.png" image you can see that the repo is selected correctly and the sub-group is correct. Then after the installation, you can see on image "3 - After repo install.png" that the incorrect repository and repository URL are set.


Avatar

Dennis

That is really interesting, how did you create the repository with gitlab that way?

You just entered a subgrouped name, or are those branches?


  • T
D

Dewesoft

On the root group level, you can choose to create a New sub-group and then in the sub-group, I created multiple repos. So the structure is Group/Sub-group/Project. Those are not branches.


D

Dewesoft

You can also have multiple sub-groups, eg. Group/Sub-group1/Sub-group2/.../Project


Avatar

Dennis

Status changed to: Planned