Title: Problems with Applying and reverting patches · Issue #67 · gitonomy/gitlib · GitHub
Open Graph Title: Problems with Applying and reverting patches · Issue #67 · gitonomy/gitlib
X Title: Problems with Applying and reverting patches · Issue #67 · gitonomy/gitlib
Description: Hi, My name is Furqan Ahmed and I am using gitonomy to manipulate git commands through php. All other things went fine while using gitonomy except I am stuck with applying and reverting patch. As there is no direct function in the librar...
Open Graph Description: Hi, My name is Furqan Ahmed and I am using gitonomy to manipulate git commands through php. All other things went fine while using gitonomy except I am stuck with applying and reverting patch. As t...
X Description: Hi, My name is Furqan Ahmed and I am using gitonomy to manipulate git commands through php. All other things went fine while using gitonomy except I am stuck with applying and reverting patch. As t...
Opengraph URL: https://github.com/gitonomy/gitlib/issues/67
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems with Applying and reverting patches ","articleBody":"Hi,\nMy name is Furqan Ahmed and I am using gitonomy to manipulate git commands through php. All other things went fine while using gitonomy except I am stuck with applying and reverting patch. As there is no direct function in the library to apply and revert a patch so I am using run in repository.php file to run the commands. Following are the commands that I am using to apply and revert a patch file.\n\nApplying a patch file \n$repository = new Repository('../../../furqan-repositories/test-repository/remote-repository');\n $patch = PATCH_FILES_FOLDER_PATH.'latest.patch';\n\n```\n $otpt = $repository-\u003erun( 'apply', array( '../../../furqan-repositories/local-repository/patches/first_ever_patch.patch' ) );\n```\n\nReverting a patch file\n\n$repository = new Repository(\"c:/furqan-repositories/test-repository/remote-repository\");\n $otpt = $repository-\u003erun( 'apply', array( '-R', 'c:/furqan-repositories/local-repository/patches/first_ever_patch.patch' ) );\n\nI am using the above code to apply and revert patches but the following exception is appearing : \n\nError while running git command:\n\"C:\\Program Files (x86)\\Git\\bin\\git.exe\" \"--git-dir\" \"C:\\furqan-repositories\\test-repository\\remote-repository/.git\" \"--work-tree\" \"C:\\furqan-repositories\\test-repository\\remote-repository\" \"apply\" \"../../../furqan-repositories/local-repository/patches/first_ever_patch.patch\"\n\nerror: hello.txt: No such file or directory\n\nThe file that has been changed i.e., hello.txt could not be found. However through git bash I can easily apply and revert patches. Can any body please help me out with this issue.\n\nThanks and Regards,\nFurqan Ahmed. \n","author":{"url":"https://github.com/furqan-ahmed","@type":"Person","name":"furqan-ahmed"},"datePublished":"2014-08-02T09:45:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/67/gitlib/issues/67"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3a69b340-b8ca-8f3d-6d3e-de9ce7cd22ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE9A:27673B:17CCF97:1EC4077:697489FD |
| html-safe-nonce | 8a8d1719f4e4d76a0c351176a4bb1e3896dd97acacc45ae86c61f5006bfeb2dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTlBOjI3NjczQjoxN0NDRjk3OjFFQzQwNzc6Njk3NDg5RkQiLCJ2aXNpdG9yX2lkIjoiMzE1OTA5NTgzNDA3NDk3NDcxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9bff652d2233176482deafe7c11a0ad1359e9c6d8db9bbc95851daa922b60762 |
| hovercard-subject-tag | issue:39346060 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitonomy/gitlib/67/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c82badedb88bf054958f0a6a586eb13fb549cd9b01a555a5b5ed8fb5fb1a279/gitonomy/gitlib/issues/67 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c82badedb88bf054958f0a6a586eb13fb549cd9b01a555a5b5ed8fb5fb1a279/gitonomy/gitlib/issues/67 |
| og:image:alt | Hi, My name is Furqan Ahmed and I am using gitonomy to manipulate git commands through php. All other things went fine while using gitonomy except I am stuck with applying and reverting patch. As t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | furqan-ahmed |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/gitonomy/gitlib git https://github.com/gitonomy/gitlib.git |
| octolytics-dimension-user_id | 2288721 |
| octolytics-dimension-user_login | gitonomy |
| octolytics-dimension-repository_id | 5709354 |
| octolytics-dimension-repository_nwo | gitonomy/gitlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5709354 |
| octolytics-dimension-repository_network_root_nwo | gitonomy/gitlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width