diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-14 16:22:21 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-14 16:22:21 +0200 |
commit | ee06edc646129bd1ab7f2c1ffe1fbfdf2e8290bf (patch) | |
tree | 25941a4d1c38bd6effb15c195d227fbd46976e5b /tools/git-notify | |
parent | 25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (diff) | |
download | monitoring-plugins-ee06edc646129bd1ab7f2c1ffe1fbfdf2e8290bf.tar.gz |
git-notify: Fix the ordering of commits
If notifications for multiple commits are created, sort them
chronologically instead of in reverse chronological order.
Diffstat (limited to 'tools/git-notify')
-rwxr-xr-x | tools/git-notify | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/git-notify b/tools/git-notify index 17093aab..088a5804 100755 --- a/tools/git-notify +++ b/tools/git-notify | |||
@@ -145,7 +145,7 @@ sub git_rev_list(@) | |||
145 | die "Cannot open pipe: $!" if not defined $pid; | 145 | die "Cannot open pipe: $!" if not defined $pid; |
146 | if (!$pid) | 146 | if (!$pid) |
147 | { | 147 | { |
148 | exec "git", "rev-list", @revlist_options, @args or die "Cannot execute rev-list: $!"; | 148 | exec "git", "rev-list", "--reverse", @revlist_options, @args or die "Cannot execute rev-list: $!"; |
149 | } | 149 | } |
150 | while (<REVLIST>) | 150 | while (<REVLIST>) |
151 | { | 151 | { |