浏览代码

Fix build fetching git_timestamp if git log.showsignature=true

Zorvalt 1 年之前
父节点
当前提交
5a81d2440f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      methods.py

+ 1 - 1
methods.py

@@ -268,7 +268,7 @@ def get_version_info(module_version_string="", silent=False):
     if os.path.exists(".git"):
     if os.path.exists(".git"):
         try:
         try:
             version_info["git_timestamp"] = subprocess.check_output(
             version_info["git_timestamp"] = subprocess.check_output(
-                ["git", "log", "-1", "--pretty=format:%ct", githash]
+                ["git", "log", "-1", "--pretty=format:%ct", "--no-show-signature", githash]
             ).decode("utf-8")
             ).decode("utf-8")
         except (subprocess.CalledProcessError, OSError):
         except (subprocess.CalledProcessError, OSError):
             # `git` not found in PATH.
             # `git` not found in PATH.