Depth and reset

I've added two features for this plugin: support for shallow clones, option to reset the repo before syncing.
You should maybe handle any error codes here instead of swallowing them silently.