Extract URI from File before using it to search for config files

Fixes gh-8
This commit is contained in:
Dave Syer
2014-10-01 11:31:41 +01:00
parent f255051901
commit f27b6abce6

View File

@@ -141,7 +141,7 @@ public class JGitEnvironmentRepository implements EnvironmentRepository {
logger.warn("Could not pull remote for " + label + " (current ref=" + ref + ")");
}
}
String search = basedir.getAbsolutePath();
String search = basedir.toURI().toString();
environment.setSearchLocations(search);
result = clean(environment.findOne(application, profile, label));
}