Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix visual diff failing to getfile if there is a space in the path #86

Merged
merged 1 commit into from Jul 13, 2023

Conversation

SRombautsU
Copy link

@SRombautsU SRombautsU commented Jul 13, 2023

Fix missing double quotes around the RevSpec in PlasticSourceControlUtils::RunGetFile()

Fix SRombauts#130 Diff against Depot doesn't work if the path contains a space (regression in 1.8.1)

Bug introduced by PR #77 1003295-fix-getfile-perf-using-shell in commit 33e4af1 by Sébastien Rombauts, 2023/04/06:
Fix performance issue with the diff of assets

Rename RunDumpToFile() to RunGetFile()
Remove its first parameter InPathToPlasticBinary
Make it call "getfile" on the background shell instead of executing a new dedicated cm process

In the refactor I dropped by mistake the double quotes that surrounded the RevSpec in:
FString FullCommand = TEXT("cat "");
FullCommand += InRevSpec;
FullCommand += TEXT("" --raw --file="");

Fix SRombauts#130 Diff against Depot doesn't work if the path contains a space (regression in 1.8.1)

Fix missing double quotes around the RevSpec in PlasticSourceControlUtils::RunGetFile()

Bug introduced by PR #77 1003295-fix-getfile-perf-using-shell in commit 33e4af1 by Sébastien Rombauts, 2023/04/06:
    Fix performance issue with the diff of assets

    Rename RunDumpToFile() to RunGetFile()
    Remove its first parameter InPathToPlasticBinary
    Make it call "getfile" on the background shell instead of executing a new dedicated cm process

In the refactor I dropped by mistake the double quotes that surrounded the RevSpec in:
	FString FullCommand = TEXT("cat \"");
	FullCommand += InRevSpec;
	FullCommand += TEXT("\" --raw --file=\"");
@SRombautsU SRombautsU requested a review from mig42 July 13, 2023 15:41
@SRombautsU SRombautsU self-assigned this Jul 13, 2023
@SRombautsU SRombautsU added the bug label Jul 13, 2023
Copy link

@danielhompanera danielhompanera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielhompanera danielhompanera merged commit 541ba0c into master Jul 13, 2023
@danielhompanera danielhompanera deleted the 1003807-fix-diff-on-path-with-a-space branch July 13, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants