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():
12 message = "Autoinstall configuration of %s locker.\n\n%s" % (util.get_dir_owner(), util.get_git_footer())
15 message += "\nConfigured-by: " + util.get_operator_git()
16 except util.NoOperatorInfo:
18 shell.call("git", "commit", "--allow-empty", "-a", "-m", message)