You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

  1. From b0b4eff10d998ff6bb00d5a36478f2b3d6ee2ee0 Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@1wt.eu>
  3. Date: Wed, 14 Dec 2016 16:43:23 +0100
  4. Subject: [PATCH 02/19] SCRIPTS: git-show-backports: fix a harmless typo
  5. There was a double output redirection in this script while dumping the
  6. current branch's refs which could cause either an error or an empty file.
  7. (cherry picked from commit b684cd4642186fd64c9335c316aeca16cc87d9de)
  8. ---
  9. scripts/git-show-backports | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/scripts/git-show-backports b/scripts/git-show-backports
  12. index 6567b2f..ca7ad4f 100755
  13. --- a/scripts/git-show-backports
  14. +++ b/scripts/git-show-backports
  15. @@ -183,7 +183,7 @@ mkdir -p .git/.show-backports #|| die "Can't create .git/.show-backports"
  16. WORK=.git/.show-backports
  17. rm -f "$WORK/${REF//\//_}"
  18. -git log --reverse ${LOGEXPR:+--grep $LOGEXPR} --pretty="%H %s" "$BASE".."$REF" | grep "${SUBJECT}" > "$WORK/${branch//\//_}" > "$WORK/${REF//\//_}"
  19. +git log --reverse ${LOGEXPR:+--grep $LOGEXPR} --pretty="%H %s" "$BASE".."$REF" | grep "${SUBJECT}" > "$WORK/${REF//\//_}"
  20. # for each branch, enumerate all commits and their ancestry
  21. --
  22. 2.10.2