Fixed 'reference is not a tree' error in Git.