Cloning Git Repository fails: An error occured while checking the destination directory: Unknown error

I'm using version 1.6.20.0 of Windows SourceTree running under Win7.  The destination directory is a SAMBA file share from an Oracle Unbreakable Linix (RHEL 6) server which is empty and to which I have R/W access.

I tried mapping a drive letter to the share with the same result.  I can clone to Windows-based file shares with no problem.  The SAMBA config for the directory is as follows

 

[cw-design]
comment = R/W HTML/PHP
path = /var/www/apps/cw-design
create mask = 0664
directory mask = 0775
writeable = yes
browseable = yes
valid users = <ACTIVE DIRECTORY GROUP OF WHICH I AM A MEMBER>
#force group = apache
force group = <A GROUP WE USE FOR DEPLOYMENT OF WEB FILES>
force user = <A USER WE USE FOR DEPLOYMENT OF WEB FILES>
guest ok = no

Any ideas as to why I can't clone from Windows SourceTree to a SMB share on Linux?

1 answer

SourceTree (and Git in general) don't work reliably when trying to use a network share repository as local.

Despite whether what you are trying to do is a valid use case for a network-share repository, the people who make decisions about Git would say "just clone it to both the local drive and server, and push/pull as necessary."

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

831 views 3 2
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