-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I'm looking if around there is a solution to match the path segment of a repository URL like the host part.
I see in the docs that I can declare:
[github.com*]
target=github.com/username
To target a password named github.com/username to authenticate repository with url like: github.com/username/first.git, github.com/username/second.git and so on.
Using the ${host} var the same result could be obtained from:
[*]
target=${host}/username
But if I want to match something in the path segment, like my username and repository name, there isn't solution yet. If I want to use password stored in github.com/username/first and github.com/username/second I'd like to use:
[*]
target=${host}/${path}
# or
[*]
target=${url}
To match the entire url string. This permit a pass configuration like this:
$ pass
Password Store
├── github.com
│ ├── daniele-tentoni
│ | ├── password-store
│ | └── vue-mtg-deck-tracker
│ └── username
│ └── another-repo
# In the .ini file
[... other stuff]
...
[*]
target=${url} # This is a catch all target
My question now is: do you have other solution to do this? Any caveat? I could have many repository in many companies each with their usernames.