fix file owner/group and use git-core

instead of git