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
panic trying to track file from within subdirectory of submodule #310
Tried to track a file from within a subdirectory of a submodule and got a traceback. Tried the same command from the root of the submodule working directory and it succeded:
Thanks for the report. I'm not too sure how Git LFS should behave here though. Is your submodule using Git LFS? Would you expect Git LFS to add the line to the .gitattributes inside the submodule, instead of the existing repo?
Regarding the submodule aspect of this issue, Git LFS seems to work OK. When I ran it from the submodule directory (the last command in the above transcript) it added the line to the .gitattributes file of the submodule. That's fine. The problem occured when I was inside a subfolder of this submodule and tried to track the file.
Activity
technoweenie commentedon May 15, 2015
Thanks for the report. I'm not too sure how Git LFS should behave here though. Is your submodule using Git LFS? Would you expect Git LFS to add the line to the .gitattributes inside the submodule, instead of the existing repo?
kouk commentedon May 15, 2015
Regarding the submodule aspect of this issue, Git LFS seems to work OK. When I ran it from the submodule directory (the last command in the above transcript) it added the line to the .gitattributes file of the submodule. That's fine. The problem occured when I was inside a subfolder of this submodule and tried to track the file.
michael-k commentedon May 16, 2015
I can reproduce the issue under linux. It is not dependend on
track.git lfs helpleads to the same panic.Fixed detection of LocalGitDir within submodules
add failing test for #310