From 6909ac8d1d9df4544d5f0584682d37e43ed354d9 Mon Sep 17 00:00:00 2001
From: Don March <don@ohspite.net>
Date: Sat, 26 Mar 2016 14:12:07 -0400
Subject: [PATCH] Fix git version parsing when there are spaces

---
 vcsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vcsh b/vcsh
index f9bea25..de1b419 100755
--- a/vcsh
+++ b/vcsh
@@ -476,7 +476,7 @@ write_gitignore() {
 
 	use
 	cd "$VCSH_BASE" || fatal "could not enter '$VCSH_BASE'" 11
-	local GIT_VERSION=$(git --version)
+	local GIT_VERSION="$(git --version)"
 	local GIT_VERSION_MAJOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\..*/\1/p')
 	local GIT_VERSION_MINOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\.\([0-9]\)\..*/\2/p')
 	OLDIFS=$IFS
-- 
GitLab