Re: [BUG] git pull ignores pull.autostash=true configuration when used with --git-dir and --work-tree flags on a bare repository

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

 



Bryan Lee <hi@xxxxxxxxxx> wrote:
> 
> 3. Set global Git configuration for automatic rebasing and stashing:
>   $ git config --global pull.rebase true
>   $ git config --global pull.autostash true
> 
>   Verify the configuration is set:
>   $ git config --global pull.rebase
>   true
>   $ git config --global pull.autostash
>   true

Maybe you can try `git config rebase.autostash true` instead.

> The difference is that Git is not honoring the pull.autostash=true
> configuration when the repository is accessed using --git-dir and
> --work-tree flags. The autostash feature is completely ignored, and
> Git behaves as if pull.autostash=false.

I’m not sure why this difference happens either.

- Lidong




[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