go-git-http-xfer
go-git-http-xfer copied to clipboard
Update tests to pass more configurations
This PR changes your tests (only tests!) for a few reasons:
- the default
HEADhas changed frommastertomainin new git versions. Tests now read.git/HEADto get the right pattern - All files are now created in temporary directories instead of
/data/gitin some cases - temporary directories are created without permissions on MacOS. The addition of
os.ModePermfixes it - temporary directories are now removed at the end of every tests to rerun them as wanted
- a complete configuration is reset on every test so that we can run them independently
gitmight not be located in/usr/binon some OS or because you want to use a customgitversion
Your repository is really awesome. Thank a lot for sharing!