Revert "Revert "weird stuff from git for windows""

This reverts commit 78f77fca85d82b04cdf93bfa05b327425273c228.