From ed3da471d96dbf534ce3d07c4eb3a328ee273409 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Sko=C5=99epa?= <jakub@skorepa.info>
Date: Mon, 11 Apr 2016 15:38:02 +0200
Subject: [PATCH] Fix sitegin not copying files from static

if path contains "git". Should be if contains ".git"
---
 index.js                  | 2 +-
 sitegin/parseRedirects.js | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 68c6a297..6204214c 100755
--- a/index.js
+++ b/index.js
@@ -111,7 +111,7 @@ var copyStaticFiles = function(builddir, staticdir,themedir) {
   fsextra.copy(
       staticdir,
       builddir,
-      function(file){ return !(file.match('.git') || file.match('static/articles')); },
+      function(file){ return !(file.match('\\.git') || file.match('static/articles')); },
       function(){console.log('copy static done');}
     );
   fsextra.copy(
diff --git a/sitegin/parseRedirects.js b/sitegin/parseRedirects.js
index 352e89b9..8e651ce8 100644
--- a/sitegin/parseRedirects.js
+++ b/sitegin/parseRedirects.js
@@ -11,13 +11,11 @@ var readRedirectWorker = function(content, obj) {
     throw e;
   }
   obj.content = obj.metadata.target;
-  console.log(obj.file)
   obj.file = obj.file.split(path.sep).join('/');
   if(obj.file.match(/^redirects\/(.*)index\.toml/))
     obj.file = obj.file.replace(/^redirects\/(.*)index\.toml/,'$1');
   else
     obj.file = obj.file.replace(/^redirects\/(.*)\.toml/,'$1');
-  console.log(obj.file)
   return obj;
 }
 
-- 
GitLab