b66a6512eb6dea6cf5339eaa857a81d1b89cb4deJulian Kornberger File.open("#{local_path}/config","a") do |f|
b66a6512eb6dea6cf5339eaa857a81d1b89cb4deJulian Kornberger f.puts "[#{mainsection}" << (subsection ? " \"#{subsection}\"" : '') << "]"
b66a6512eb6dea6cf5339eaa857a81d1b89cb4deJulian Kornberger # Removes a config section
b66a6512eb6dea6cf5339eaa857a81d1b89cb4deJulian Kornberger git_exec 'config', '--remove-section', section.join(".")
b66a6512eb6dea6cf5339eaa857a81d1b89cb4deJulian Kornberger raise unless e.message.include?('No such section')