git repository URL using '-upload-pack' option

David Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2015

I'm pulling a git repo from one of my colleagues. I usually do the following on the command line:

  • git clone <host_name> /path/to/repo/i/want -u /stuff/bin/git-upload-pack/

How do I convert this into a valid Repository URL per https://confluence.atlassian.com/display/BAMBOO058/Git ? I'm having trouble finding examples or documentation regarding additional options beyond the URL. At the moment, I'm trying the URL: <host_name>/:path/to/repo/i/want/, which produces the error

  • Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists

Any help greatly appreciated

1 answer

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2015

Assuming you are doing this over a network file share, you need to give the part you described as

&lt;host_name&gt;/:path/to/repo/i/want/

as a valid UNC path:

\\host_name\path\to\repo\i\want\

If you are on Windows, or something like

host_name/path/to/repo/i/want/

on linux (The ":" in your string is not in the right place and only necessary if you are giving a port number when using HTTP(S) or SSH.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events