]> TLD Linux GIT Repositories - packages/rpm-build-tools.git/commitdiff
- changelog fix
authorMarcin Krol <hawk@tld-linux.org>
Mon, 9 Jul 2012 14:23:11 +0000 (14:23 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 9 Jul 2012 14:23:11 +0000 (14:23 +0000)
builder

diff --git a/builder b/builder
index 1927dfd26441dfa672b113934ce1b60e53cacbe8..10508500a333cb326bb62f112e2fd7537a65aee8 100755 (executable)
--- a/builder
+++ b/builder
@@ -452,7 +452,7 @@ insert_gitlog() {
        # * 1265749244 +0000 Random Hacker <nikt@pld-linux.org> 9370900
        git rev-list -${log_entries:-20} HEAD | while read sha1; do
                local logfmt='%B%n'
-               git notes list $sha1 &> /dev/null && logfmt=%N
+               git notes list $sha1 1>/dev/null 2>&1 && logfmt=%N
                git log -n 1 $sha1 --format=format:"* %ad %an <%ae> %h%n${logfmt}%n" --date=raw | sed '/^$/q'
        done > $gitlog
        LC_ALL=C gawk '/^\* /{printf("* %s %s\n", strftime("%a %b %d %Y", $2), substr($0, length($1)+length($2)+length($3)+4)); next}{print}' $gitlog > $speclog