Git diff not working in UE 4.12

Hello.

I am compiled UE 4.12 from UE 4.12 branch and found bug git diff system in UE.
For example, if to press “Diff against depot”, it doesn’t work and in Output log error occured:

SourceControl:Error: Error fatal: Not a git repository: 'Content/Levels/CharacterCreationLevels/.git'
LogSourceControl: Writed 'e:/MyGame/Saved/Diff/temp-6857ccb1b59f0ddb668d707245cfb4213393835d-CreateCharacterLevelMainWidget.uasset' (45o)
LogLinker:Warning: The file '../../../../MyGame/Saved/Diff/temp-6857ccb1b59f0ddb668d707245cfb4213393835d-CreateCharacterLevelMainWidget.uasset' contains unrecognizable data, check that it is of the expected type.

Ouch, seems another regression related to a change on the way paths to repository are handled… I’ll have a look at this tomorrow!

.com/EpicGames/UnrealEngine/pull/2354

I provided a fix for this bug on Github Pull Request #2406

Cheers!

is there a Jira UE number to track this bug? It is still present in 4.12.0 and in the source code

I think that UE developers believe that it is not considered to be a bug, but a feature. :slight_smile:

Hello ,

There is a bug report for the PR itself since that is automatically generated, but nothing in separately for the issue. A Dev is currently assigned to the PR’s bug report and should be taking a look soon.

Good news, my fix has been merged a few minutes ago on upcoming 4.12.3 :slight_smile: