[#5308] send source_url and source_path to repo clone events

This refactors a few common lines from the end of each scm
implementation's clone() method into the shared init_as_clone
method.  Reduces duplication and makes the separate source_url
and source_path vars available to pass to the event.
9 files changed