I use Putty to apply cloze module patch. Here are my steps:
I go to this directory: sites/all/modules/contrib/cloze
I save the patch: wget https://www.drupal.org/files/issues/cloze-report_form_quiz_compatibility_fixed-2216049-1.patch Save as: cloze-report_form_quiz_compatibility_fixed-2216049-1.patch
I apply patch: git apply cloze-report_form_quiz_compatibility_fixed-2216049-1.patch (nothing happen. no error)
I check the status: git status
Result:
fatal: Not a git repository (or any of the parent directories): .git
How come?
git
in is not a git repositorygit apply
works only on tracked files, so if you're not source controlling your current file that you're trying to apply a patch to, then just dopatch -p1 < patchname.patch
instead ofgit apply