[bug] Multiline value should error if the next line is section

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

 



## Environment

OS: Arch Linux
Git version: git@next d54016d9e

## Reproduction Steps

(1) Create the following `git.config`,

```
[alias]
        tree = --no-pager log --graph \
                --date=format:'%Y-%m-%d' \
                --pretty=format:'%C(auto,dim)%ad %<(7,trunc) %an %Creset%m %h %s %Cgreen%d%Creset' \
                --exclude="*/production" \
                --exclude="*/dev-*" \
                -n 20 \
[user]
        name = Shulhan
        email = ms@xxxxxxxxxxxx
```

(2) Run `git config -f git.config -l`


## Expected Result

Error message,

  fatal: bad config line 9 at git.config


## Actual Result

The command print the following output,

```
alias.tree=--no-pager log --graph
--date=format:'%Y-%m-%d'
--pretty=format:'%C(auto,dim)%ad %<(7,trunc) %an %Creset%m %h %s %Cgreen%d%Creset' --exclude=*/production                 --exclude=*/dev-*                 -n 20 [user]
alias.name=Shulhan
alias.email=ms@xxxxxxxxxxxx
```



[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