numerous fixes to support cloning when the commit is not already present... -sai