Previously, gbp didn't correctly parse this kind of URL and clone
failed.
Signed-off-by: Guan Junchun <junchunx.guan@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
raise GitRepositoryError("Error running git clone: %s" % stderr)
if not name:
- name = remote.rstrip('/').rsplit('/',1)[1]
+ try:
+ name = remote.rstrip('/').rsplit('/',1)[1]
+ except IndexError:
+ name = remote.split(':', 1)[1]
if (mirror or bare):
if not name.endswith('.git'):
name = "%s.git" % name