packages/export: export_git: properly handle remotes, now by cloning from the src's origin.

Also do error handling more sanely.