Uploading a patch file fails with 'Unrecognised diff format' error

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Attempting to upload a patch file to Crucible for a review results in the following error on screen:

1 Error adding patch: Unrecognised diff format. Expected diff hunk descriptor but found:

Cause

This is a known bug:

In keeping with Atlassian's Bug Fixing Policy, please log in and vote on the issue.

Resolution

Remove similar entries from the patch file and attempt to upload it again:

1 2 3 4 5 6 7 8 9 10 Index: java/generic-file.xml =================================================================== --- java/generic-file.xml (revision 0) +++ java/generic-file.xml (working copy) Property changes on: java/generic-file.xml ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision URL
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.