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 track doesn't make file paths relative to working dir #230
changed the title [-]git lfs track doesn't make file paths relative to GIT_DIR[/-][+]git lfs track doesn't make file paths relative to working dir[/+]on Apr 14, 2015
IMO paths outside the working dir are invalid, so yeah. But so would be ../../*.pdf.
The way I managed to find this was by dragging the bigger files from Finder.app to Terminal.app, expecting the paths to be resolved. If I had dragged files from e.g. the wrong working dir I'd have ended up with e.g. ../../*.pdf.
Activity
technoweenie commentedon Apr 14, 2015
Thanks, that's legit. I wonder if we should block any paths that start with
/, unless they happen to match the current working directory?[-]git lfs track doesn't make file paths relative to GIT_DIR[/-][+]git lfs track doesn't make file paths relative to working dir[/+]MSch commentedon Apr 14, 2015
IMO paths outside the working dir are invalid, so yeah. But so would be
../../*.pdf.The way I managed to find this was by dragging the bigger files from Finder.app to Terminal.app, expecting the paths to be resolved. If I had dragged files from e.g. the wrong working dir I'd have ended up with e.g.
../../*.pdf.Added a failing test for git-lfs#230
Track the relative representation of a path
michael-k commentedon Jun 1, 2015
PR #356 takes care of absolute paths and paths outside the repository
Added a failing test for git-lfs#230
Track the relative representation of a path