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

How to use linguist-vendored in .gitattributes with directories with spaces? #5117

Closed
dan-trewin opened this issue Dec 21, 2020 · 3 comments
Closed

Comments

@dan-trewin
Copy link

Github is recognizing my repo as the wrong language due to vendored code. I've been searching all over for an answer to this issue.

Basically, the directory I want linguist to ignore has a space in it. Unfortunately, I think this is causing an issue with the pattern matching.

How would I mark /Assets/TextMesh Pro/* as vendored code in .gitattributes

I've tried all these an none of them have worked:

Assets/TextMesh Pro/* linguist-vendored
Assets/TextMesh*Pro/* linguist-vendored
/Assets/TextMesh Pro/* linguist-vendored
@Alhadis
Copy link
Collaborator

Alhadis commented Dec 21, 2020

This should work:

Assets/TextMesh?Pro/* linguist-vendored

However, so should Assets/TextMesh*Pro/*. Remember, changes to .gitattributes files won't immediately take effect until a change to another file is pushed (which forces GitHub to recompute the language stats).

@dan-trewin
Copy link
Author

Thanks @Alhadis .

I used your suggested pattern: Assets/TextMesh?Pro/* linguist-vendored and also changed the README to trigger a new language stats computation.

I also had to wait ~15 hrs for it to recompute. I didn't realize there was a delay for GitHub to recompute the language stats. Good to know!

Closing.

@mfp0610

This comment has been minimized.

@github-linguist github-linguist locked as resolved and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants