mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-24 16:55:17 -04:00
Allow auto-committer author to be specified in config
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user