Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Record achievements even if all the output is not read. #64

Open
wants to merge 1 commit into from

1 participant

@datalogics-kam
  • Ignore PIPE signals that may come through if the user quits out of the pager in commands like 'git log'.
@datalogics-kam datalogics-kam Record achievements even if all the output is not read.
- Ignore PIPE signals that may come through if the user quits out of the
  pager in commands like 'git log'.
01e078e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2012
  1. @datalogics-kam

    Record achievements even if all the output is not read.

    datalogics-kam authored
    - Ignore PIPE signals that may come through if the user quits out of the
      pager in commands like 'git log'.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  git-achievements
View
1  git-achievements
@@ -485,6 +485,7 @@ ACTIONLOGFILE="$HOME/.git-achievements-action.log"
ACHIEVEMENTSLOGFILE="$HOME/.git-achievements.log"
if [ ! "$1" = "achievements" ] ; then
+ trap "" PIPE # don't fail if user doesn't read all the output
git "$@"
r=$?
if [ ! ${r} -eq 0 ] ; then
Something went wrong with that request. Please try again.