Skip to content

Commit

Permalink
Fix GitLab owner detection for nested org hierarchy (#419)
Browse files Browse the repository at this point in the history
GitLab repositories with nested organization structures (such as
`gitlab.com/org/sub-org/repo`) would incorrectly return `sub-org` as the
owner, when `org/sub-org` is desired. Using `fullPath` instead of `path`
fixes this.

---------

Co-authored-by: Paul Taylor <[email protected]>
  • Loading branch information
cwharris and trxcllnt authored Nov 27, 2024
1 parent 0060253 commit 274954f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/src/utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "devcontainer-utils",
"id": "utils",
"version": "24.12.3",
"version": "24.12.4",
"description": "A feature to install RAPIDS devcontainer utility scripts",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
4 changes: 2 additions & 2 deletions features/src/utils/opt/devcontainer/bin/gitlab/repo/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ get_repo_owner() {
query {
project(fullPath: "${repo}") {
namespace {
path
fullPath
}
}
}
________EOF
)" \
| jq -r '.data.project.namespace.path';
| jq -r '.data.project.namespace.fullPath';
}

get_repo_git_url() {
Expand Down

0 comments on commit 274954f

Please sign in to comment.