X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/822f5f13ffc21bb9878d7d1318344d57d1ad3adf..30380c4b5b28df9670ea5952e14bc485d1d34133:/wizard/git.py diff --git a/wizard/git.py b/wizard/git.py index 858ed6b..6340766 100644 --- a/wizard/git.py +++ b/wizard/git.py @@ -2,9 +2,17 @@ Helper functions for dealing with Git. """ -from wizard import shell +from wizard import shell, util def describe(): """Finds the output of git describe --tags of the current directory.""" - return shell.Shell().safeCall("git", "describe", "--tags", strip=True) + return shell.safeCall("git", "describe", "--tags", strip=True) +def commit_configure(): + message = "Autoinstall configuration of %s locker.\n\n%s" % (util.get_dir_owner(), util.get_git_footer()) + util.set_git_env() + try: + message += "\nConfigured-by: " + util.get_operator_git() + except util.NoOperatorInfo: + pass + shell.call("git", "commit", "--allow-empty", "-a", "-m", message)