You can clone with
HTTPS or Subversion.
stopping and restarting the adb server to ensure it runs as root and the devices are shown
Looks good for the most part. In my experience, though, 'su' on its own drops you into a root shell, doesn't elevate privs. Might I suggest su -c 'adb start-server'? Should start the server as root, and fork. Either way, I'll push this in tonight.
Pushed a fix to this merge, 4b05e85
Just changed invocation of su to su -c 'commands' and dropped the codeblock below where testing that adb is in $PATH.
This should resolve issue #6