Windows 8 尝试在drupal 7中修补文件后出错

Windows 8 尝试在drupal 7中修补文件后出错,windows-8,module,drupal-7,patch,Windows 8,Module,Drupal 7,Patch,我正在尝试修补此文件: 进入我的drupal 7模块,但每次在cygdrive中都会出现以下错误: File to patch: 935208-uploadprogress-bar-fix-129-reroll_d7.patch checking file 935208-uploadprogress-bar-fix-129-reroll_d7.patch Hunk #1 FAILED at 463. 1 out of 1 hunk FAILED can't find file to patch

我正在尝试修补此文件:

进入我的drupal 7模块,但每次在cygdrive中都会出现以下错误:

File to patch: 935208-uploadprogress-bar-fix-129-reroll_d7.patch
checking file 935208-uploadprogress-bar-fix-129-reroll_d7.patch
Hunk #1 FAILED at 463.
1 out of 1 hunk FAILED
can't find file to patch at input line 32
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/core/modules/file/file.module b/core/modules/file/file.module
|index b7d2f3c..9ae6411 100644
|--- a/core/modules/file/file.module
|+++ b/core/modules/file/file.module
文件目录正确,在我运行此命令后,它会将这两个文件放在我的文件夹中:

935208-uploadprogress-bar-fix-129-reroll_d7.patch.owNkFPU
935208-uploadprogress-bar-fix-129-reroll_d7.patch.rkVjQxF
为什么会发生这种情况,为什么会崩溃

我用的是cygdrive,我在电脑上运行的是Windows8

有人知道如何解决这个问题吗


谢谢

您确定正确应用了修补程序吗?命令是什么

git apply [patchname]
或者,如果您使用的是像PHPStorm这样的优秀IDE,那么就更容易了。这里有应用补丁操作,它在应用补丁方面做得最好。还要确保您位于正确的文件夹中(以匹配修补程序中的路径-即。
/modules/file/file.css