From: Ciaran Gultnieks Date: Sun, 3 Nov 2013 12:07:47 +0000 (+0000) Subject: Allow auto-committer author to be specified in config X-Git-Tag: 0.1~237^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bfaf162700cad934cbcd25d2752050dc7cbd0832;p=fdroidserver.git Allow auto-committer author to be specified in config --- diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 3d718de9..9c096b97 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -453,8 +453,12 @@ def main(): common.write_metadata(metafile, app) if options.commit and logmsg: print "Commiting update for " + metafile - if subprocess.call(["git", "commit", "-m", - logmsg, "--", metafile]) != 0: + gitcmd = ["git", "commit", "-m", + logmsg] + if 'auto_author' in config: + gitcmd.extend(['--author', config['auto_author']]) + gitcmd.extend(["--", metafile]) + if subprocess.call(gitcmd) != 0: print "Git commit failed" sys.exit(1)