14

I am using git bash

$ git --version
git version 2.9.3.windows.1

on Windows 7. When I clone a repo, I see:

$ git clone https://UserName@bitbucket.mycompany.org:5555/scm/repofolder/repo.git
Cloning into 'repo'...
Fatal: UriFormatException encountered.
Fatal: UriFormatException encountered.
Fatal: UriFormatException encountered.
Fatal: UriFormatException encountered.
remote: Counting objects: 2666, done.
remote: Compressing objects: 100% (1426/1426), done.
remote: Total 2666 (delta 1378), reused 2112 (delta 1047)
Receiving objects: 100% (2666/2666), 1.53 MiB | 715.00 KiB/s, done.
Resolving deltas: 100% (1378/1378), done.
Checking connectivity... done.

I suspect that some other problems I am experiencing are related to this UriFormatException. Anyone know why the exception might be occurring and how to resolve the issue?

ericg
  • 584

3 Answers3

14

This happens when using GIT for Windows v2.9.3 and using a repository URL that includes a port number. Rollback to v2.9.2 or wait for a fixed version of GIT for Windows.

OomJan
  • 175
0

when setting the proxy make sure the username and password does not have any symbols. Clean password while setting proxy resolved the issue to me.

-2

Had the same issue. just changed system git to embed git and started working.

Regards, Basavaraj