lib/gitolite/config.rb in jbox-gitolite-1.1.2 vs lib/gitolite/config.rb in jbox-gitolite-1.1.3
- old
+ new
@@ -65,9 +65,11 @@
def to_file(path=".", filename=@filename)
raise ArgumentError, "Path contains a filename or does not exist" unless File.directory?(path)
new_conf = File.join(path, filename)
File.open(new_conf, "w") do |f|
+ f.sync = true
+
#Output groups
dep_order = build_groups_depgraph
dep_order.each {|group| f.write group.to_s }
gitweb_descs = []