From ac051a7487a7ffcde51d17a76a371595fbc44a2d Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Wed, 25 Nov 2015 14:42:16 -0500 Subject: [PATCH] improve commit message for version updates by listing the previous version --- git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/git.py b/git.py index 0e5b731..d6f6d12 100644 --- a/git.py +++ b/git.py @@ -66,4 +66,7 @@ def commit_to_git(path): if build.success == 0: return - call("git commit -a -m \"Autospec creation for version " + tarball.version + "\"", cwd=path) + if config.old_version != None and config.old_version != tarball.version: + call("git commit -a -m \"Autospec creation for version update from " + config.old_version + " to " + tarball.version + "\"", cwd=path) + else: + call("git commit -a -m \"Autospec creation for version " + tarball.version + "\"", cwd=path)