SSH drive forced unmounting while updating in sourcetree

I am currently using source tree for my mercurial repos, I store the repo's on a local server for multiple people. I used to use SMB share but ran into random issues when pushing/pulling. Did some research and found that SSH tunneling was the best solution for this.

Recently it seems when I do a update to a branch, it will sometimes, eject my drive. For mounting I have used transmit, and now expandrive, both with the same result.

Is this a issue with SSH, Sourcetree, or the server it self?

Any help would be appreciated.

1 answer

This widget could not be displayed.

Yeah an SMB share is not very reliable for use with Git or Mercurial. What do you mean by 'SSH tunnelling' though? Do you mean running the SMB protocol over SSH? If you're using SSH, why not just use SSH push/pull directly instead with a SSH URL? That's how I set up all my hg repos.

I don't know specifically about ejecting the drive, my guess would be that the tunnelling via SSH/SMB is a bit fragile. If it were me I'd just use a SSH URL directly (no SMB) for the hg remote - you can always use SMB separately for simple file access.

My apologies, I am using expandrive to SFTP: into my local server, which is where I mount as a drive. I then clone, push, pull, and commit from source tree, but it goes through that SFTP method. So what you are saying is to change my remote url to ssh username@ipaddress ?

Yes, so the format for the remote URL will be something like: ssh://yourname@host:/path/to/repository - you don't need anything else except the SSH server running.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

723 views 1 3
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