One another possibility that might cause this is manual updated .git/hooks/pre-commit file that is fetching from an older default branch which does not exists in the remote at all.
.git/hooks/pre-commit