Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,885
Community Members
 
Community Events
168
Community Groups

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

Edited

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

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

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

Atlassian Community Events