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.
This commit is contained in:
Willy Tarreau 2016-12-14 16:43:23 +01:00
parent 11cfb3daec
commit b684cd4642

View File

@ -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