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

StackBlitz sends an empty/duplicate commit to linked GitHub repo #1466

Closed
jordanhailey opened this issue May 24, 2021 · 7 comments
Closed

StackBlitz sends an empty/duplicate commit to linked GitHub repo #1466

jordanhailey opened this issue May 24, 2021 · 7 comments

Comments

@jordanhailey
Copy link

Description of Bug

After setting up a new create-react-app project and connecting to a GitHub repo, I've noticed that two commits are sent each time I commit -> push from StackBlitz.

  • The first commit contains all file changes and whatever commit message I have chosen to send.
  • The second commit is "empty" in that is has no file changes associated with it, but it does have the default message of N file(s) modified.

Steps to Reproduce

  1. Create a project and link to a GitHub Repository
  2. Edit any file(s).
  3. Click "Commit" and either enter a custom commit message or use the automated message.
  4. Navigate to the linked repository on GitHub and see commit history.

Expected Behavior

Only one commit is sent with the file changes, the message either being a custom commit message or the default if no message is specified.

Screenshots/Screencast

Additional Context/Questions

@Lonli-Lokli
Copy link

@jordanhailey are you still able to push your code from stackblitz to github? I do not even see push button, connect is broken too

@jordanhailey
Copy link
Author

Hey @Lonli-Lokli

I was able to test this again just now, I can still commit (and it still pushes two commits to my repo)

Not sure what might be causing issues on your end, do you see a "Commit" button near the top of your IDE? If not, perhaps you haven't linked your GitHub account?

screenshot of stackblitz IDE

@Lonli-Lokli
Copy link

Lonli-Lokli commented Jun 10, 2021

@jordanhailey I think it's because you have your token in place. I had to logout and after that I see this when trying to connect the repo - failing request and constantly loading page.

But login itselff was successfull, I can see all projects. I just cant do anything with github

https://pasteboard.co/K5ZUyLt.png

@jordanhailey
Copy link
Author

Ah shame.. I'm sure the team is moving at rapid pace and may have that bug resolved soon. 🤞🏽

@aymeric-guittard
Copy link

Hello! 😄

I am having the exact same issue. I managed to "fix" it by developping on an other branch, and squashing the commits when merging. I'd still very much like this issue fixed 😅

@mikitachyzhyk
Copy link

Same issue, please fix.

@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

This issue is now resolved in our new VS Code editor! Additional details in Github issue #2473

@kc0tlh kc0tlh closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants