Clone Dialog incorrectly extracts name from URL that contains ".git" in the middle
By @ch3cooli on May 13, 2012 09:44 (imported from Google Code)
Clone Dialog: when extracting module name from URL, we should compare if URL
ends with ".git" instead of finding first ".git" in URL.
This change allows URL that contains ".git" in the middle like
"https//github.com/github/help.github.com.git" to be extracted correctly.