Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo: Allow /s in repo names #33

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

dbnicholson
Copy link
Contributor

At Endless we have repos organized into staging subdirectories, but the
repo resource was only allowing a single path element. This changes the
parameter to a single glob and then walks backwards to find a repo name
that matches a path prefix.

@dbnicholson dbnicholson force-pushed the repo-names-with-slash branch from c53aad7 to aa62329 Compare December 2, 2019 17:20
@dbnicholson
Copy link
Contributor Author

I rebased this on master now and did a quick test. It seems to work correctly. @alexlarsson can you have a look?

@alexlarsson
Copy link
Member

I landed the 1.0 conversion which changed this stuff so it needs rebasing.

src/app.rs Show resolved Hide resolved
This was already determined above and nothing would have caused it to
change.
@dbnicholson
Copy link
Contributor Author

I think this is better. I had originally done the backwards scan with the idea that you wouldn't want to inadvertently match the wrong repo, but the repos can't be nested, so a forward search is all that's needed.

At Endless we have repos organized into staging subdirectories, but the
repo resource was only allowing a single path element. This changes the
parameter to a single glob and then walks backwards to find a repo name
that matches a path prefix.
@dbnicholson
Copy link
Contributor Author

3rd times a charm?

@alexlarsson alexlarsson merged commit e8bbad6 into flatpak:master Dec 11, 2019
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.

2 participants