diff src/org/tmatesoft/hg/internal/NewlineFilter.java @ 118:68ba22a2133a

Defects in the filter initialization
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 04 Feb 2011 02:44:32 +0100
parents 46291ec605a0
children 7567f4a42fe5
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/NewlineFilter.java	Fri Feb 04 02:12:30 2011 +0100
+++ b/src/org/tmatesoft/hg/internal/NewlineFilter.java	Fri Feb 04 02:44:32 2011 +0100
@@ -167,7 +167,7 @@
 
 		public void initialize(HgRepository hgRepo, ConfigFile cfg) {
 			failIfInconsistent = cfg.getBoolean("eol", "only-consistent", true);
-			File cfgFile = new File(new HgInternals(hgRepo).getRepositoryDir(), ".hgeol");
+			File cfgFile = new File(new HgInternals(hgRepo).getRepositoryDir().getParentFile(), ".hgeol");
 			if (!cfgFile.canRead()) {
 				return;
 			}