Re: Git config not expanding user home directories
- From
Andreas Ericsson <ae@op5.se>
- Date
- Sep 30, 2008, 10:49 UTC
- Message-ID
- <48E2043A.4000501@op5.se>
- In-Reply-To
- <F90667E7-6B06-4B34-B655-3C42ED236D9A@netspot.com.au>
Tom Lanyon wrote:
Show 5 quoted lines
> Hi all, > > Is it normal behavior that git (well at least git-svn) won't expand > ~user from .gitconfig? >
Yes. You could add a patch for that though. git-daemon does ~user expansion since quite a long time back, so there's a function ready for it. I'd do it by doing something like:
git config --path section.key
so that scripts can get the user-expanded version as well. In-core applications can call expand_path() or some such on their own, I think.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231