diff options
| author | Zaran <zaran.krleza@gmail.com> | 2011-09-21 03:09:31 +0200 |
|---|---|---|
| committer | Zaran <zaran.krleza@gmail.com> | 2011-09-21 03:09:31 +0200 |
| commit | 73b2c72961544b42229dd334fc75a20d52acff9b (patch) | |
| tree | 8765f25b3e00ff1097017cc0db007185b54fe80f /misc/post-receive | |
| parent | c607a0177e6950e098d0f655dc4b8d6008d50710 (diff) | |
| download | alias-73b2c72961544b42229dd334fc75a20d52acff9b.tar.gz | |
Add trac update hook.
Called from the post-receive hook
Diffstat (limited to 'misc/post-receive')
| -rwxr-xr-x | misc/post-receive | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/post-receive b/misc/post-receive index b44916a..1041c89 100755 --- a/misc/post-receive +++ b/misc/post-receive @@ -4,11 +4,12 @@ # <oldrev> <newrev> <refname> # irc notification -# change the path of the python script +# change the path of the python scripts { while read oldrev newrev refname do a=`git log --format=format:"%an | %s" $oldrev..$newrev` + printf "$oldrev $newrev $refname\n" | python trac-update.py printf "$a\n" done } | python git-post-commit.py "irc.freenode.net" "AliasCommit" "#alias" |
