Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote origin url is missing path separator in cloned repo #2337

Closed
wdfiller opened this issue Sep 19, 2019 · 5 comments
Closed

remote origin url is missing path separator in cloned repo #2337

wdfiller opened this issue Sep 19, 2019 · 5 comments

Comments

@wdfiller
Copy link

OS: Win 10 64 bit
Git version: 2.23.0

I can reproduce the issue by doing the following.
Create a bare repo
git --bare init

clone the repo
git clone somepathtobarerepo

open the config file on the cloned repo and notice that
[remote "origin"]
url = C:UsersEngineerDocumentsGITREPOSBARE

but it should be
[remote "origin"]
url = C:/Users/Engineer/Documents/GIT/REPOS/BARE

After making the correction everything works. This also shows up when doing it through the Git Gui.

@PhilipOakley
Copy link

I see the path is a local path.

Could you provide an exact reproduction for a local path because there are many ways of quoting and 'sharing' paths (e.g. home drives as \share), and hence ways of them being mangled by different conversion processes

@wdfiller
Copy link
Author

wdfiller commented Sep 20, 2019 via email

@wdfiller
Copy link
Author

wdfiller commented Sep 20, 2019 via email

@dscho
Copy link
Member

dscho commented Sep 23, 2019

In Bash, backslash characters are escape characters. They have to be single-quoted, or escaped (by backslash characters, i.e. C:\\Users\\SomeUser\\Documents\\Git\\REPOS\\BARE).

@dscho
Copy link
Member

dscho commented Oct 15, 2021

Closing this stale ticket.

@dscho dscho closed this as completed Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants