]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
SCRIPTS: git-show-backports: fix a harmless typo
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Dec 2016 15:43:23 +0000 (16:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Dec 2016 15:48:16 +0000 (16:48 +0100)
There was a double output redirection in this script while dumping the
current branch's refs which could cause either an error or an empty file.

scripts/git-show-backports

index 6567b2f0243017bbcb6c5b2e76f9cf7326f4bc32..ca7ad4f76c352bf2ccab375e6a43560005cd508c 100755 (executable)
@@ -183,7 +183,7 @@ mkdir -p .git/.show-backports #|| die "Can't create .git/.show-backports"
 WORK=.git/.show-backports
 
 rm -f "$WORK/${REF//\//_}"
-git log --reverse ${LOGEXPR:+--grep $LOGEXPR} --pretty="%H %s" "$BASE".."$REF" | grep "${SUBJECT}" > "$WORK/${branch//\//_}" > "$WORK/${REF//\//_}"
+git log --reverse ${LOGEXPR:+--grep $LOGEXPR} --pretty="%H %s" "$BASE".."$REF" | grep "${SUBJECT}" > "$WORK/${REF//\//_}"
 
 # for each branch, enumerate all commits and their ancestry