Here is a repro commit.
This uses vcpkg as a submodule and the repository is checked out to the "plugin" subdirectory.
The following is printed in this action:
Running command '/usr/bin/git' with args 'submodule,status,/home/runner/work/RewardsTheater/RewardsTheater/plugin/vcpkg' in current directory '/home/runner/work/RewardsTheater/RewardsTheater'.
fatal: not a git repository (or any of the parent directories): .git
That's because this git status command is run in /home/runner/work/RewardsTheater/RewardsTheater which is indeed not a git repository—the plugin subdirectory is.
This is a regression: such an error wasn't occuring on 6fe6989.
With that commit, it instead runs (as expected)
Running command '/usr/bin/git' with args 'rev-parse,HEAD' in current directory '/home/runner/work/RewardsTheater/RewardsTheater/plugin/vcpkg'.
Here is a repro commit.
This uses vcpkg as a submodule and the repository is checked out to the "plugin" subdirectory.
The following is printed in this action:
That's because this
git statuscommand is run in/home/runner/work/RewardsTheater/RewardsTheaterwhich is indeed not a git repository—thepluginsubdirectory is.This is a regression: such an error wasn't occuring on 6fe6989.
With that commit, it instead runs (as expected)