Reflect API changes, upgrade libgit2 to a50086d
Delete unwanted ref file