I added a subproject to a git repository by doing a subtree merge. I now need to apply a patch to the subproject, but running "git apply -v patch_name.patch" returns nothing. There's no error message and none of the files get changed either.
I've tried cloning the subproject separately (ie, into a subdirectory /tmp) and comparing that to what's in the subproject directory under the main project; the directories are the same.
When I run the patch against the clone under /tmp, it applies as expected. It seems that the problem is related to the fact that the subproject directory is the result of a subtree merge.
I guess I could patch the files under the fresh clone and then copy them over what's in the subproject directory under my main project. It seems like I shouldn't have to do that. Is there a better way around this?