[#8296] fix handling of branch urls with / and ~ in them
7 files changed