Allow user to select any branch explicitly for clones + updates.  Code cleanup.
Allow user to select any branch explicitly for clones + updates.  Code cleanup.

smart-classic/smart_server,smart-classic/smart_server