Scripts to fix the broken commits in this repo

The result of this can be pushed to github and passes a "git fsck"

Have a look at https://github.com/djs55/xen-api-fixed