GIT LFS - Post-Merge hook not working?


I'm currently in the process of implementing my own git-lfs server using Sourcetree as the main GUI to work with it. I noticed LFS support in 2.2 and got very excited because I've been having huge issues with repository size.

So anyway, I've successfully implemented the server, and everything seems to be working great, except that when a file is pushed using GIT LFS on a different clone it's never pulled until I do a manual git-lfs pull through the menu (Repository->GIT LFS->Pull LFS Content). I understand that git-lfs is still essentially in Beta; but I believe that there needs to be an addition to sourcetree for LFS enabled repositories for either a separate pull button for GIT-LFS, or for the Pull button to automatically do a git lfs pull after it's completed the regular git pull.

Or, am I wrong, and is there a way that this can currently be done?



I learned a bit more about smudges, and it appears that the lfs tag in the .gitattributes file for merge i.e. (merge=lfs) should be fixing this problem, but it doesn't appear to do so. Also, git-lfs is initialized properly according to each sourcetree window, under repository. So I'm not sure what's going wrong here.

1 answer

1 accepted

0 votes
Answer accepted

Found out that the problem was that I wasn't waiting long enough to check the file. The smudge happened without me even knowing, and relatively soon after the pull I was able to open the file. 

Interesting problem though, probably something I should report to the feature tracker.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,226 views 4 2
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