Patches do not end with new line [message #796916] |
Sun, 12 February 2012 15:24  |
Eclipse User |
|
|
|
A patch created using egit from commit in history, when applied using git (command line) check fails reporting that last line in the patch is corrupt. After appending a new line at the end of the patch file, git accepts patch as valid.
Does this has to do something with my local configuration, am I doing something wrong, or is this a bug that could be fixed in egit/jgit?
Environment used includes:
- git version 1.7.7.6
- SpringSource Tool Suite 2.8.1.RELEASE (based on Eclipse Indigo 3.7.1)
- egit 1.1.0
Kind regards,
Stevo.
|
|
|
Re: Patches do not end with new line [message #956546 is a reply to message #796916] |
Wed, 24 October 2012 11:54  |
Eclipse User |
|
|
|
I know this is an old topic, but I just found this same issue. In testing with Eclipse 4.2.1 (Juno SR1) it still is the same. Patches made with Team->Create Patch are missing a blank line at the end so they cannot be applied with the command-line git apply command until they are manually edited. I could not find a bug report for this. Does anyone know if there is one? If not, should we enter one?
While we are on the subject of applying patches, I have one other question. In Eclipse, I have to manually change the "Ignore leading path name segements" to 1 each time I apply a Git patch. Wouldn't it be nice if we have a place in Preferences to set up a default value for this value?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.45630 seconds