Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide ::git-ls-files:: to resolve git submodules #23

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

idbrii
Copy link
Contributor

@idbrii idbrii commented Jan 6, 2022

Resolve #22: Cloned subdirectory fails

ls-tree doesn't support --recurse-submodules, but --ls-files does. So
provide it as an option.


This is a draft because I'm not sure how it handles symlinks. Also, I think before merging this pr, there should be tests for handling different cases. I don't understand why ls-tree is used instead of ls-files except maybe because it wasn't clear how to get only filenames (--abbrev=0 was definitely unobvious).

Fix pfirsich#22: Cloned subdirectory fails

ls-tree doesn't support --recurse-submodules, but --ls-files does. So
provide it as an option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloned subdirectory fails
1 participant