Skip to content

[IMP] git: support per-repository path overrides and flat repo structure#163

Draft
kinhosz wants to merge 1 commit into
odoo-odev:betafrom
kinhosz:imp-repository-path-override
Draft

[IMP] git: support per-repository path overrides and flat repo structure#163
kinhosz wants to merge 1 commit into
odoo-odev:betafrom
kinhosz:imp-repository-path-override

Conversation

@kinhosz

@kinhosz kinhosz commented Jun 9, 2026

Copy link
Copy Markdown

Description

Add a new [repository_paths] config section allowing users to set a custom local path for any repository via odev config set repository_paths.<org>/<repo> <path>, overriding the default <repositories>/<org>/<repo> layout.

Also add a fallback in GitConnector.path that detects repositories cloned in a flat structure (<repositories>/<repo> instead of <repositories>/<org>/<repo>) so odev works without any extra configuration for users with that layout.

Linked Issues

Link the issues that this PR solves, if any:

  • #[issue number or URL]
  • ...

Compliance

  • I have read the contribution guide
  • I made sure the documentation is up-to-date both in doctrings and the docs directory
  • I have added or modified unit tests where necessary
  • I have added new libraries to the requirements.txt file, if any
  • I have incremented the version number according the versioning guide
  • The PR contains my changes only and no other external commit

@kinhosz kinhosz marked this pull request as draft June 9, 2026 12:37
Add a new `[repository_paths]` config section allowing users to set a
custom local path for any repository via `odev config set
repository_paths.<org>/<repo> <path>`, overriding the default
`<repositories>/<org>/<repo>` layout.

Also add a fallback in `GitConnector.path` that detects repositories
cloned in a flat structure (`<repositories>/<repo>` instead of
`<repositories>/<org>/<repo>`) so odev works without any extra
configuration for users with that layout.
@kinhosz kinhosz force-pushed the imp-repository-path-override branch from 64464a2 to 4d6a06a Compare June 9, 2026 12:50
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