Fixes #6651,bz1094986 - Disable Sync without repo url

Added code not allow syncing on repositories without a URL.
Merge pull request #4442 from parthaa/disable-sync

Fixes #6651,bz1094986 - Disable Sync without repo url