Skip to content

Normalize git repository sub-directories#10

Merged
robwoolley merged 1 commit intomainfrom
fix-relpath
Feb 6, 2026
Merged

Normalize git repository sub-directories#10
robwoolley merged 1 commit intomainfrom
fix-relpath

Conversation

@robwoolley
Copy link
Owner

The vcstool can check out the git working copy in subdirectories that aren't directly under the src directory.

This means that the path to the ROS package in the workspace may not reflect the path that bitbake would use to build the recipe.

This creates the relative path by discovering the root of the git repository and using it as the base directory.

This should resolve issues #5

Both the case where the package.xml is in a sub-directory:

src/mygroup/

  • .git
  • mypkg/
    • package.xml

as well as cases where the git repo is in a subdir:

src/mygroup/

  • mypkg/
    • .git
    • package.xml

The vcstool can check out the git working copy in subdirectories
that aren't directly under the src directory.

This means that the path to the ROS package in the workspace may
not reflect the path that bitbake would use to build the recipe.

This creates the relative path by discovering the root of the
git repository and using it as the base directory.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
@robwoolley robwoolley merged commit 49dd2ce into main Feb 6, 2026
2 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant