[master] baea879 gc unused variable b(ranch)

Nils Goroll nils.goroll at uplex.de
Mon Mar 5 16:51:06 UTC 2018


commit baea879811cc4ee8e52385de5d85c8596ac7b529
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Mar 5 17:21:58 2018 +0100

    gc unused variable b(ranch)

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index d744cf3..efb178a 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -827,13 +827,7 @@ if os.path.isdir(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"
-	], shell=True, universal_newlines=True)
-	b = b.strip()
 else:
-	b = "NOGIT"
 	v = "NOGIT"
 
 vcsfn = os.path.join(srcroot, "include", "vcs_version.h")


More information about the varnish-commit mailing list