Fixes git-on-master function.