From b9a2ea80aa9970bbd625da4c986d29a36c405629 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 22 Apr 2015 08:51:29 +0200 Subject: fix(config): selective cfg write;fix cfg parser * config parser now handles quoted values correctly. This doesn't hamper multi-line support. * added regression test to travis to assure we will be warned if we rewrite and break the user's .gitconfig file * only rewrite configuration files if we actually called a mutating method on the writer. Previously it would always rewrite it. Fixes #285 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b53228ca..389780c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,9 @@ install: # as commits are performed with the default user, it needs to be set for travis too - git config --global user.email "travis@ci.com" - git config --global user.name "Travis Runner" + # If we rewrite the user's config by accident, we will mess it up + # and cause subsequent tests to fail + - cp git/test/fixtures/.gitconfig ~/ script: # Make sure we limit open handles to see if we are leaking them - ulimit -n 96 -- cgit v1.2.3