From eeed9274c7d2a28aff9bd46ab62c7d3419bd0317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 12 Jul 2015 17:04:23 +0300 Subject: [PATCH] Take the data path from config --- lib/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/index.js b/lib/index.js index c00e9ad..dcb6ee5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -35,6 +35,10 @@ function GitStats(config, data) { self.config = this.getConfig(); } + if (self.config.data_path && !data) { + data = selc.config.data_path; + } + this.path = Abs(Deffy(data, DEFAULT_STORE)); }