Page MenuHomeDevCentral

Allow to create a differential change with git format-patch
Open, NormalPublic

Description

Git recently added two lines at the bottom of a patch generated with git format-patch, incompatible with current diff parse code.

When trying to import such a diff using /differential/diff/create, it returns the following exception:

Unhandled Exception ("Exception")	
Diff Parse Exception: Expected a hunk header, like 'Index: /path/to/file.ext' (svn), 'Property changes on: /path/to/file.ext' (svn properties), 'commit 59bcc3ad6775562f845953cf01624225' (git show), 'diff --git' (git diff), '--- filename' (unified diff), or 'diff -r' (hg diff or patch).

             53   +   uid: 2038
             54   +
             55      pkuz:
             56        fullname: PK of UZ
             57        ssh_keys:
   >>>       58   -- 
             59   2.37.1 (Apple Git-137.1)
             60

Event Timeline

MoustaphaAs triaged this task as Normal priority.Mon, Oct 28, 14:30
dereckson renamed this task from Create a diff with diff format patch to Allow to create a change with diff format patch on DevCentral differential.Thu, Oct 31, 18:18
dereckson updated the task description. (Show Details)
dereckson added a project: upsection.
dereckson edited projects, added upstream; removed upsection.
dereckson renamed this task from Allow to create a change with diff format patch on DevCentral differential to Allow to create a differential change with git format-patch.Thu, Oct 31, 18:20