Error Code 128 shows unknown network drive

I have been happily using SourceTree for 4 months, when suddenly none my local repositories would be displayed in the tool.

The errror says 'git status' failed with code 128: unable to access 'H:\/.config/git/config': invalid argument... then it shows the correct local path to the repository.

I have made no changes to the config, nor performed any updates when this issue hit.

I have tried updating the embedded GIT and using it, without success. I have also tried re-installing without success.

Using git status and other commands from the SourceTree termainal works fine

Any ideas?

2 answers

I have run into the same exact problem.  My H drive is a network drive which is used to map the "home" drive on my company's network.  Whenever I lose access to the H drive, I receive the error in git.  Sometimes, the H drive will lose connection at work due to network issues. If I am at home at not connected to my work network via vpn I will get the issue.  As soon as I connect to the VPN, the issue goes away.  It appears that my local GIT has installed some reference to my H drive which I never use.  But since it is mapped as the home drive, sourcetree, which is using git, is now dependent upon my H drive.  I haven't made the change yet to fix it, but I believe I may have to change the default home drive, then reinstall git.

There are many practical problems with using a DVCS (git/mercurial) to manage pseudo-local repositories (such as network storage). This is a Git issue, not a SourceTree one. This post has a similar issue and links to even more questions.

I STRONGLY recommend having your repository actually be local, and add this network location where you also want your files to live as a remote that you can push to.

Feel free to explain any reasons why that doesn't work for your particular situation.

Hi Seth,

All my local repositories are stored in my C Drive. My remote repositories are located on a server in my regional data centre. I have never stored anything on the H drive SourceTree is indicating, so not sure why it suddenly started referencing this drive. As mentioned, the error shows the correct local file system's location of my repository... very odd.

Ah, that is very odd. Do you have an H drive? Is it a network drive or something else?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

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...

434 views 0 1
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