0
나는 Kohana를 설치하는 루트 디렉토리에있는 request.patch라는 파일로 kohana를 패치하려고합니다.디렉토리를 패치하는 방법은 무엇입니까?
820a821,823
> // Convert dashes to underscores
> $controller = strtr($this->controller, '-', '');
>
822c825
< $class = new ReflectionClass($prefix.$this->controller);
---
> $class = new ReflectionClass($prefix.$controller);
831a835,837
>
> // Convert action dashes to underscores
> $action = strtr($action, '-', '');
을 그러나 다음 i를 kohana 루트에 CD를 시도하고이 패치를 적용 할 때 : 나는 다음과 같은 오류가 발생
/cygdrive/c/cygwin/bin/patch.exe -p0 < request.patch
을 다음과 같이 패치 읽기 7. 나는 창문에 Cygwin에서 사용하고 있습니다 :
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch:
숫자가 참조하는 파일이 무엇인지 알면 수동으로 수행 할 수도 있습니다.
이 파일은 유효한 diff 파일이지만 사용자의 의견에 따르면 참조 된 파일이 없습니다. 숫자는 파일의 코드 행을 참조하는 것입니다 (a 및 c는 의미가 추가 및 변경됨). http://en.wikipedia.org/wiki/Diff). 패치 이름 'request.patch'는 request.php라는 system/classes/kohana에있는 파일을 가리 킵니다. 따라서 패치 파일을 해당 디렉토리로 옮기고'/cygdrive/c/cygwin/bin/patch.exe request.php cygwin에서
다시 한번 보았습니다. diff와 유사합니다. – zombor