From 1f0cfbc521c7992f5952a9cbaafbef1da226e992 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 9 Jan 2014 17:51:27 +0100
Subject: [PATCH] Provide fallback for the config version before the site repo
 has commits

---
 include/gluon.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/gluon.mk b/include/gluon.mk
index 97d382d7d..34168d7a1 100644
--- a/include/gluon.mk
+++ b/include/gluon.mk
@@ -22,7 +22,7 @@ $(GLUON_SITEDIR)/site.mk:
 -include $(GLUON_SITEDIR)/site.mk
 
 
-GLUON_CONFIG_VERSION := $(shell cd $(GLUON_SITEDIR) && git describe --always --dirty=.$$(stat -c %Y $(GLUON_SITEDIR)/site.conf))
+GLUON_CONFIG_VERSION := $(shell cd $(GLUON_SITEDIR) && git describe --always --dirty=.$$(stat -c %Y $(GLUON_SITEDIR)/site.conf) 2>/dev/null || stat -c %Y site.conf)
 export GLUON_CONFIG_VERSION
 
 define merge-lists
-- 
GitLab