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
@pat-s Is docs/ listed in your .gitignore? It's my understanding that libgit2 can force add files that were specifically ignored, but it can't force add files within ignored subdirectories. See my PR #290. It contains unit tests to confirm this behavior, but I don't know how to best solve it.
At this point in history it seems docs/ was not in .gitignore.
I must be missing something, because I don't see any pattern in that .gitignore that would ignore docs/CNAME. In other words, I don't see why --force would be needed in this situation in the first place.
Regardless though, the conclusion is still that libgit2 doesn't behave the same as Git itself when interpreting .gitignore and --force.
Also tested with {gert}. Maybe an issue of ligbit2?
Using git directly works.
Created on 2020-05-05 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: