Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Hooks and lfs folders are created on project root instead of inside .git folder when using git-lfs

axelucho April 7, 2020

Having this problem I decided to make a fresh clone.

Using git 2.26.0.windows.1 

GitLFS 2.10.0

SourceTree 3.3.8

When using sourcetree my folder structure ends up looking like this:

.git/
    hooks/
        pre-push
        post-checkout
        post-merge
        post-commit
lfs/
cache
incomplete
objects
tmp hooks/ pre-push post-checkout post-merge post-commit
lfs/
objects
tmp ourFilesAndStuff

core.hooksPath are not currently set.

git lfs env looks ok to me as well:

LocalWorkingDir=C:\Users\Axel\Desktop\TacGalac
LocalGitDir=C:\Users\Axel\Desktop\TacGalac\.git
LocalGitStorageDir=C:\Users\Axel\Desktop\TacGalac\.git
LocalMediaDir=C:\Users\Axel\Desktop\TacGalac\.git\lfs\objects
LocalReferenceDirs=
TempDir=C:\Users\Axel\Desktop\TacGalac\.git\lfs\tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=C:\Users\Axel\Desktop\TacGalac\.git\lfs
AccessDownload=basic
AccessUpload=basic
DownloadTransfers=basic,lfs-standalone-file
UploadTransfers=basic,lfs-standalone-file
GIT_EXEC_PATH=C:/Program Files (x86)/Git/mingw32/libexec/git-core
GIT_LFS_PATH=C:\Program Files\Git LFS
git config filter.lfs.process = "git-lfs filter-process"
git config filter.lfs.smudge = "git-lfs smudge -- %f"
git config filter.lfs.clean = "git-lfs clean -- %f"

Any ideas or help would be much appreciated.

Thanks in advance

 

1 answer

0 votes
Irina Pykhova October 6, 2020

I have the same problem. Did you find any solution?

axelucho October 6, 2020

Unfortunately not really, it seems to be a bug with git lfs. You can read more about it here:
https://github.com/git-lfs/git-lfs/issues/4050#issuecomment-611004257

I ended up formating my PC and things work now but god knows why. Good luck.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events