]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/git.py
Set admin e-mail address properly on MediaWiki >= 1.18.0
[wizard.git] / wizard / git.py
index 858ed6b636ee14725ce1830504e6d8b35ca09cc3..5d210d3274ccf3a231f19de42cf3d4c4f94abb75 100644 (file)
@@ -2,9 +2,20 @@
 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():
+    """
+    Performs a commit of changes performed during configuration of an install
+    with an appropriate logfile message.
+    """
+    message = "Autoinstall configuration.\n\n%s" % util.get_git_footer()
+    try:
+        message += "\nConfigured-by: " + util.get_operator_git()
+    except util.NoOperatorInfo:
+        pass
+    shell.call("git", "commit", "--allow-empty", "-a", "-m", message)