build: Enable detailed version information when built from shallow clone or tarball

Change-Id: Ie2cc05687f4bce136451d316f32e9bab3e82844a
Refs: #1915
diff --git a/.gitignore b/.gitignore
index a4d6499..b54981e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,4 @@
 .lock*
 **/*.pyc
 build/
-
+VERSION