From: Willy Tarreau Date: Wed, 14 Dec 2016 15:43:23 +0000 (+0100) Subject: SCRIPTS: git-show-backports: fix a harmless typo X-Git-Tag: v1.8-dev1~283 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b684cd4642186fd64c9335c316aeca16cc87d9de;p=thirdparty%2Fhaproxy.git SCRIPTS: git-show-backports: fix a harmless typo 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. --- diff --git a/scripts/git-show-backports b/scripts/git-show-backports index 6567b2f024..ca7ad4f76c 100755 --- a/scripts/git-show-backports +++ b/scripts/git-show-backports @@ -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