You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git lfs not check git file system before start tracking files #293
File tracking not check necessary items before (git lfs require git file system and into git influence directory) , to prevent error I will hack some code for support this issue and I will show reproduce issue as below. ( I think it's like #200 but duplicate line of tracking file in my case)
System environments
git-lfs/0.5.1 (GitHub; darwin amd64; git 2.0.1; go 1.4.1) on Mac OS X : Yosemity 10.10.4
I woking in directory contain a testfile.png and use git lfs without git file system
It seem like git lfs not check git file system before. but if git already in the directory it’s warnning user about file exits in git lfs system (.gitattributes).
create git file system
$ git init
Initialized empty Git repository in /Users/AorJoa/repository/test_check_git_exists/.git/
I use $ go install cmd/git-lfs/git-lfs.go from commit 38657a8. It's still problem but I think test pass in #323 because $ git init was created .git directory. (I guess this issue coming from I run $ git lfs track <some file> out of git directory.
Activity
Fixed git-lfs#293 check tracking in non-git directory
technoweenie commentedon May 21, 2015
Hey, I'm not able to replicate this:
I added a passing test for this in #323. Are you still seeing this? What version of Git LFS are you running?
aorjoa commentedon May 22, 2015
I use
$ go install cmd/git-lfs/git-lfs.gofrom commit 38657a8. It's still problem but I think test pass in #323 because$ git initwas created .git directory. (I guess this issue coming from I run$ git lfs track <some file>out of git directory.technoweenie commentedon May 22, 2015
Can you try it with 7bbd60d?
aorjoa commentedon May 22, 2015
I try to use git lfs with 7bbd60d it's look good. 👍
technoweenie commentedon May 22, 2015
Great! I'll merge that PR. Thanks again for the report and patch :)
technoweenie commentedon May 22, 2015
This should be fixed in #323.
By the way, it's probably better to track file types or directories instead of additional files.
aorjoa commentedon May 23, 2015
👍