The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

axelucho
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Irina Pykhova
October 6, 2020

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

axelucho
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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.

TAGS
AUG Leaders

Atlassian Community Events