Skip to content

Commit

Permalink
Merge pull request #2266 from leetrout/patch-1
Browse files Browse the repository at this point in the history
Fix typo in help docs for to-ref and from-ref
  • Loading branch information
asottile committed Mar 2, 2022
2 parents 7858ad0 + e58bcb5 commit e0e536b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/main.py
Expand Up @@ -106,7 +106,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
parser.add_argument(
'--from-ref', '--source', '-s',
help=(
'(for usage with `--from-ref`) -- this option represents the '
'(for usage with `--to-ref`) -- this option represents the '
'original ref in a `from_ref...to_ref` diff expression. '
'For `pre-push` hooks, this represents the branch you are pushing '
'to. '
Expand All @@ -117,7 +117,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
parser.add_argument(
'--to-ref', '--origin', '-o',
help=(
'(for usage with `--to-ref`) -- this option represents the '
'(for usage with `--from-ref`) -- this option represents the '
'destination ref in a `from_ref...to_ref` diff expression. '
'For `pre-push` hooks, this represents the branch being pushed. '
'For `post-checkout` hooks, this represents the branch that is '
Expand Down

0 comments on commit e0e536b

Please sign in to comment.