chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.07k stars 107 forks source link

bit info: regex used in sed command fails on macOS #84

Closed CyberJack closed 4 years ago

CyberJack commented 4 years ago

Describe the bug When the bit info command is run on a macOS, the regex used to fetch the status of submodules fails

sed: 1: "s/\([^abcdef0-9]\{,2\}\ ...": RE error: invalid repetition count(s)

The problem is that sed on macOS does not understand the {,2} quantifier. It must be changed to {0,2}.

To Reproduce Steps to reproduce the behavior:

  1. Install on macOS
  2. go to a git repository
  3. run bit info

Expected behavior When no submodules are used, I expect an empty section. When there are submodules, I expect information about the submodules.

Desktop (please complete the following information):

Fix

I already created a pull request for this: #83

CyberJack commented 4 years ago

The pull request is merged already. Thanks. I will close the ticket.