'git status' failed with code 128 on SourceTree

error_encountered.png

 

Hello,

I get this error almost every time I change a file tracked by lfs. I tried to switch between embedded or system git but without results.

 

I am using:

  •  SourceTree v2.3.1.0
  •  Embedded Git v2.14.1 + git-lfs v2.0.2
  •  Disabled LibGit2 integration
  •  Windows 10

 

If I try to run

git lfs logs last

I get (*********************** only to hide real paths):

 



$ git-lfs.exe filter-process
Unable to move H:\***********************\.git\lfs\tmp\104500565 to H:\***********************\.git\lfs\objects\0e\1e\0e1ebb73a03194b335e13e247e67f623fe7f61a47545d054fdc2078df0d027d9


rename H:\***********************\.git\lfs\tmp\104500565 H:\***********************\.git\lfs\objects\0e\1e\0e1ebb73a03194b335e13e247e67f623fe7f61a47545d054fdc2078df0d027d9: Accesso negato.

ENV:
LocalWorkingDir=H:\***********************
LocalGitDir=H:\***********************\.git
LocalGitStorageDir=H:\***********************\.git
LocalMediaDir=H:\***********************\.git\lfs\objects
LocalReferenceDir=
TempDir=H:\***********************\.git\lfs\tmp
ConcurrentTransfers=3
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic
UploadTransfers=basic
GIT_CONFIG_PARAMETERS='color.branch=false' 'color.diff=false' 'color.status=false' 'diff.mnemonicprefix=false' 'core.quotepath=false'
GIT_DIR=.git
GIT_LFS_PATH=C:\Program Files\Git LFS
GIT_PAGER=cat
GIT_PREFIX=

 

1 answer

This widget could not be displayed.

Hi Lorenzo, are you using a mapped drive? H: looks suspiciously like a mapped drive and Git doesn't play nicely with those. If you are would you be able to switch to a local drive and see if the error persists?

Let us know!

Best regards,

Ana

Hi Ana - I am having the same issue as Lorenzo and my repos are on a secondary drive on my computer.  Due to size issues, this is how we need to have our workstations configured.  Do you have any suggestions for changing permissions or anything else so that SourceTree will play nicely across drives?

Thanks

shannon

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

712 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