Fish Shell - Init Git repo yields constant terminal output after every command
<p>This abruptly started happening a few weeks ago. I wasn't paying much attention to when it happened so I'm not sure what commands led to this. However, it appears to only happen inside of git repos, but immediately upon <code>cd</code>ing into a git repo my shell immediately prints the following:</p>

<p><code>string match: Regular expression compile error: quantifier does not follow a repeatable item
string match: *
string match: ^</code></p>

<p>and continues to do so after <strong>every</strong> command, not just git commands. It also occurs when I create a new folder, initialize an empty git repo inside it, then add a single file by some means (e.g. Nano, Vim, etc.). Immediately upon saving and closing the file my terminal outputs this <code>string match</code> mumbo-jumbo...</p>

<p>I've been able to find the fish shell code that outputs this error <a href="https://github.com/fish-shell/fish-shell/blob/master/pcre2-10.21/src/pcre2_error.c" rel="nofollow noreferrer">here</a>, but haven't been able to trace it back to anything yet. Also, if I switch back to the bash shell the issue does not reproduce.</p>

<p><em>System Info:</em> This occurs on both of my Mac's (1 Mac Mini, 1 Macbook Pro) both running macOS Sierra.</p>

<p>Any help would be greatly appreciated!</p>