1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

Allow auto-committer author to be specified in config

This commit is contained in:
Ciaran Gultnieks 2013-11-03 12:07:47 +00:00
parent 19ef29ed15
commit bfaf162700

View File

@ -453,8 +453,12 @@ def main():
common.write_metadata(metafile, app) common.write_metadata(metafile, app)
if options.commit and logmsg: if options.commit and logmsg:
print "Commiting update for " + metafile print "Commiting update for " + metafile
if subprocess.call(["git", "commit", "-m", gitcmd = ["git", "commit", "-m",
logmsg, "--", metafile]) != 0: logmsg]
if 'auto_author' in config:
gitcmd.extend(['--author', config['auto_author']])
gitcmd.extend(["--", metafile])
if subprocess.call(gitcmd) != 0:
print "Git commit failed" print "Git commit failed"
sys.exit(1) sys.exit(1)