The second parameter of $repo->commit defaults to true, which adds the --all parameter to the subsequent git commit. This adds unstaged files in the current directory alongside the specified plugin files to the commit. This bug only shows up when using the wp gh command in a folder that contains unstaged tracked files that have been modified.
The second parameter of
$repo->commit
defaults to true, which adds the--all
parameter to the subsequentgit commit
. This adds unstaged files in the current directory alongside the specified plugin files to the commit. This bug only shows up when using thewp gh
command in a folder that contains unstaged tracked files that have been modified.