[master] 142ff1e Strip whitespaces from the version as well

Federico G. Schwindt fgsch at lodoss.net
Tue Jan 17 23:05:05 CET 2017


commit 142ff1ecf2da41c04226ce3e5c79230f842b4899
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Jan 17 20:58:12 2017 +0000

    Strip whitespaces from the version as well

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index c3b971b..8e046e5 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -1392,6 +1392,7 @@ if os.path.isdir(os.path.join(srcroot, ".git")):
 		"git --git-dir=" + os.path.join(srcroot, ".git") +
 		" show -s --pretty=format:%h"
 	], shell=True, universal_newlines=True)
+	v = v.strip()
 	b = subprocess.check_output([
 		"git --git-dir=" + os.path.join(srcroot, ".git") +
 		" rev-parse --abbrev-ref HEAD"



More information about the varnish-commit mailing list