2 Helper functions for dealing with Git.
5 from wizard import shell, util
8 """Finds the output of git describe --tags of the current directory."""
9 return shell.safeCall("git", "describe", "--tags", strip=True)
11 def commit_configure():
13 Performs a commit of changes performed during configuration of an install
14 with an appropriate logfile message.
16 message = "Autoinstall configuration of %s locker.\n\n%s" % (util.get_dir_owner(), util.get_git_footer())
19 message += "\nConfigured-by: " + util.get_operator_git()
20 except util.NoOperatorInfo:
22 shell.call("git", "commit", "--allow-empty", "-a", "-m", message)