Adding a git working copy located on sshfs volume

I have a second drive mounted (via sshfs) and am trying to add a working copy of a git repo located on the volume.

I add the bookmark and paste in the path /Volumes/Desktop/repos/src/foo-repo

The indicator appears below the field "This is a Git repository", so I know things are working okay up to this point.

When I click Add, the repo appears in my bookmarks, but its status icons (e.g. branch) do not appear.

When I open the repo from my bookmarks, I receive the error:

'git status' failed with code 128:'fatal: Could not chdir to '../../src/foo-repo': No such file or directory

2 answers

1 accepted

Hi there,

Unfortunately working with network mounted volumes for managing your repositories is problematic. It's slow and causes corruptions. They basically 'sort-of' work. This isn't to do with SourceTree, it's a network file system issue where operations cause corruptions due to the underlying protocol. Your repository usually is successfully identified, but anything after that can cause problems and it's impossible for us to be able to cater for the problems resolving around the underlying tech.

This issue has been reported quite a lot, the best solution is to instead rsync your files to the remote volume as I'm assuming you're using it for testing? Then once it's worked you can commit from there. There's other options too, but that's the simplest.

Hope that helps, if not, feel free to ask more questions!

Yes, it's a test box sitting under my desk. rsync it is, then! It's a Linux box or I would just run SourceTree there, but I'm too spoiled to want to do all my merging and stuff via command line :)

you can use expandrive sourcetree works with it

Suggest an answer

Log in or Sign up to answer
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

130 views 2 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you