Properly handle multiline git config values.
A crash on parsing was fixed a while ago. This adds support for fully correctly parsing multiline git config values, using git config --null. Since git-annex-shell configlist uses normal git config output, I left in support for that too; the two forms of config output can be easily identified by the parser. Since configlist only prints the annex.uuid config, there's no risk of multiline values there, so no need to change it.
This commit is contained in:
parent
ef28b3fef7
commit
09cd042775
4 changed files with 14 additions and 5 deletions
|
@ -203,7 +203,7 @@ tryScan r
|
|||
liftIO $ pipedconfig "ssh" sshparams
|
||||
where
|
||||
sshcmd = cddir ++ " && " ++
|
||||
"git config --list"
|
||||
"git config --null --list"
|
||||
dir = Git.workTree r
|
||||
cddir
|
||||
| "/~" `isPrefixOf` dir =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue