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

Git amend produces 500 error #154463

Closed
DevelPaga opened this issue Jul 8, 2022 · 4 comments
Closed

Git amend produces 500 error #154463

DevelPaga opened this issue Jul 8, 2022 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) git GIT issues important Issue identified as high-priority
Milestone

Comments

@DevelPaga
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.69.0
  • OS Version: Darwin x64 21.5.0

Steps to Reproduce:

  1. Create a commit
  2. Add some changes
  3. Commit amend the commit (... > Commit > Commit All (Amend) )

Error code:

> git -c user.useConfigOnly=true commit --quiet --amend
Error: Bad status code: 500
    at ClientRequest.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/git-editor-main.js:1:470)
    at Object.onceWrapper (node:events:510:26)
    at ClientRequest.emit (node:events:390:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:623:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:487:22)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
error: There was a problem with the editor '"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.

Running git commit --amend from the command line works

@lszomoru lszomoru added git GIT issues bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority labels Jul 8, 2022
@makz159
Copy link

makz159 commented Jul 8, 2022

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.69.0
  • OS Version: Darwin x64 21.5.0

Steps to Reproduce:

  1. Create a commit
  2. Add some changes
  3. Commit amend the commit (... > Commit > Commit All (Amend) )

Error code:

> git -c user.useConfigOnly=true commit --quiet --amend
Error: Bad status code: 500
    at ClientRequest.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/git-editor-main.js:1:470)
    at Object.onceWrapper (node:events:510:26)
    at ClientRequest.emit (node:events:390:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:623:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:487:22)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
error: There was a problem with the editor '"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.

Running git commit --amend from the command line works

see if #154449 helps you

@DevelPaga
Copy link
Author

Yes, unchecking the Git: Use Editor As Commit Input setting fixes the issue

@lszomoru lszomoru added this to the July 2022 milestone Jul 8, 2022
@lszomoru
Copy link
Member

lszomoru commented Jul 8, 2022

@DevelPaga, glad to hear that disabling git.useEditorAsCommitInput resolved this issue.

@lszomoru
Copy link
Member

lszomoru commented Jul 8, 2022

Closing this as duplicate of #154449.

@lszomoru lszomoru closed this as completed Jul 8, 2022
@lszomoru lszomoru added the *duplicate Issue identified as a duplicate of another issue(s) label Jul 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) git GIT issues important Issue identified as high-priority
Projects
None yet
Development

No branches or pull requests

4 participants