]> source.dussan.org Git - jgit.git/commit
Config: Allow ending a file with "=" and no newline 70/49470/1
authorDave Borowitz <dborowitz@google.com>
Thu, 4 Jun 2015 18:48:46 +0000 (11:48 -0700)
committerDave Borowitz <dborowitz@google.com>
Thu, 4 Jun 2015 18:50:31 +0000 (11:50 -0700)
commitb9f850a79bee8dae7a53afc292ce7342e32f321e
tree72d9a61c5b32fb82cfd1741a69673920ea9498d1
parent96eb3ee3976e7e9e3e118851fa614cce8a1f7d88
Config: Allow ending a file with "=" and no newline

This is a perfectly valid construction according to C git:

$ echo -en '[a]\nx =' > foo.config
$ git config -f foo.config a.x; echo $?

0

Change-Id: Icfcf8304adb43c79e2b8b998f8d651b2a94f6acb
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java