chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ef29e
)
Allow auto-committer author to be specified in config
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Sun, 3 Nov 2013 12:07:47 +0000
(12:07 +0000)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Sun, 3 Nov 2013 12:07:47 +0000
(12:07 +0000)
fdroidserver/checkupdates.py
patch
|
blob
|
history
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index 3d718de9d4d8ba569f72ad6c500ae568deb115ef..9c096b9715a6eaa2f16e925be4a331cfe2549021 100644
(file)
--- 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)