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

Merging a pull request corrupts RC2 file #18527

Closed
ajtruckle opened this issue Apr 28, 2024 · 2 comments
Closed

Merging a pull request corrupts RC2 file #18527

ajtruckle opened this issue Apr 28, 2024 · 2 comments

Comments

@ajtruckle
Copy link

The problem

I had a branch called Scintilla which I created a pull request for in GitHub Desktop.

Then, in my browser I accepted the pull request (I have not deleted the branch).

Then I went to my master branch in GD and pulled the request down. It all appeared to work.

But, when I went to compile in VS2022 it had an issue with the RC2 file.

I opened the RC2 file in Notepad and it had gibberish. It was UTF16- LE encoded.

I went to my physical backup of the Scintilla branch and replaced the file. My local version is not corrupted and is still UTF-16 LE encoded. Now VS2022 compiles.

I am very concerned that the RC2 file I ended up with was not usable and don't want this to happen again.

Thank you.

Release version

Version 3.3.14 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

See previous comments.

Log files

2024-04-28.desktop.production.log

Screenshots

No response

Additional context

No response

@steveward
Copy link
Member

@ajtruckle thanks for the report. I don't see how this would have been caused by GitHub Desktop, but Git does have issues diffing UTF-16 files unless you specifically configure your .gitattributes file. That still wouldn't result in the file becoming corrupted, though. If you're able to reproduce this in a test repository we can dig into it further.

@ajtruckle
Copy link
Author

Actually, the merge was done by GitHub online. That is where I merged. Then I pulled it down.

I had already configured the file you mentioned in the root of my repository:

*.rc2 text

Although it makes no difference. I will can't view it in GitHub Desktop anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants