Skip to content
Snippets Groups Projects
Commit dca7926c authored by Brian Norris's avatar Brian Norris Committed by Simon Glass
Browse files

patman: Support absolute and ~user-relative alias files


Python doesn't naturally support tilde (~) as a user-home marker in
paths, but git-config does. So we need to resolve it before continuing.

We also shouldn't blindly join the top-level tree with the aliasesfile
path, because it might be an absolute path.

This resolves warnings like the following:

  Warning: Cannot find alias file '/path/to/source/tree/~/.git-email'

Seen when git-config is like:

  $ git config sendemail.aliasesfile
  ~/.git-email

Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarOtavio Salvador <otavio@ossystems.com.br>
parent d8ef446f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment