If a file name exists that is at or close to the maximum length of 255 characters, source control operations will fail.

If you inspect the logs, you will see the following exception:

JGitInternalException: Exception caught during execution of reset command. File name too long

Steps to Reproduce

One easy way to get a long file name is to create a compound index with a lot of columns, as the generated name will contain each column on the index. The resulting file name will follow this general format:



The best workaround is to avoid creating compound indexes with more than a small amount of columns. This is a preventative measure. However, if the issue has already occurred, you will no longer be able to perform source control operations with the existing repository. The simplest solution in that case is to delete or reduce the complexity of the compound index, unlink your application from source control, and then re-link it to a brand new empty repository.

Related Problem: PRB1307874

Seen In


Intended Fix Version


Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-10-03 14:55:27