Forgot to change core.filemode. Changing permissions back.