Re: BUG: Git path --config doesn't work with ~ symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 05, 2021 at 09:59:58PM +0300, Theodor Negrescu wrote:

> You're right, "notepad ~/test.txt" doesn't work either.
> I figured out a workaround:
> [alias]
>     cfg = "!git config --file $(echo ~)/git-settings/.gitconfig "
> However what confuses me is that I also have
> [core]
>     hooksPath = ~/git-settings/hooks
> and that ~ works. So why doesn't it work in config --file?

Some config options that refer to paths specifically expand "~", exactly
because there is no shell involved when Git reads them.

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux