[PATCH] patman: Support absolute and ~user-relative alias files

Simon Glass sjg at chromium.org
Thu Jan 13 19:00:53 CET 2022


Em qua., 12 de jan. de 2022 às 18:22, Simon Glass <sjg at chromium.org> escreveu:
> On Fri, 7 Jan 2022 at 16:16, Brian Norris <briannorris at chromium.org> wrote:
> >
> > 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: Brian Norris <briannorris at chromium.org>
> > ---
> >
> >  tools/patman/gitutil.py | 11 ++++++++---
> >  1 file changed, 8 insertions(+), 3 deletions(-)
>
> +Otavio Salvador to check this one
>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Some use-case of mine.

Reviewed-by: Otavio Salvador <otavio at ossystems.com.br>


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list