When I specify for the repository location in Repository Settings at URL/Path:
\\\\BC01245\\myproject
(which is a local shared folder on my computer hosting a bare git repository),
several actions make sourcetree change the config file of the cloned repository and sourcetree inserts extra backslashes:
url = \\\\\\\\BC01245\\\\myproject
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = \\\\\\\\BC01245\\\\myproject
which cause other applications that use this repository to complain about not finding the repository.
Is this a known problem or is there a way to work around this?
Hi
What happens if you try adding the same remote using command line git?
There is a problem with the backslashes in the MINGW32 terminal started up and probably used by source tree. I have never seen these emulators (cygwin/ming) work without problems on windows. The terminal just refuses the windows machine name notation, it only accepts a unix server name or the windows drive mapping notation to this share (file:://z:).
Here are the details, note git for windows (last one) just works fine:
Terminal started from sourcetree MINGW32:
Welcome to Portable Git (version 1.9.5-preview20141217)
$ which git
/bin/git
url = \\\\BC1234\\repo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for all the details.
For what its worth Sourcetree doesn't run git within a terminal, instead it either uses libgit2 or directly runs the Sourcetree for Windows git.exe within a .NET process.
I would expect Runs fine on git for windows: yto apply to Sourcetree since we ship with Git 2.15+ now.
If you find using Sourcetree with Git 2.15+ still doesn't work for \\blah\repo style urls please create a ticket at https://jira.atlassian.com
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your comment. I am using version 2.3.5, I will try to log a ticket next week. As a workaround I use double forward slashes before the computer name (//BC1234/repo). Git, Sourcetree and other applications understand this non-official UNC path notation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.