When I specify for the repository location in Repository Settings at URL/Path:
(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?
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
url = \\\\BC1234\\repo
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
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event