Since there are many ways to configure git, use a standard configuration file, so tests always run with consistent settings
The remote test relied on a full repo clone that included all branches, which isn't guaranteed, especially in CI environments and when using repo forks. Use the cloned repo instead, since it will still test the desired functionality but will always have the necessary upstream branch.