vscode-pull-request-github: Creating pull request throws `Failed to execute git` error and does nothing

Hi, I’m facing a weird bug where the extension just throws Failed to execute git when trying to create a pull request.

sc1

As can be seen in above image, it shows the error with files changed and commits section stuck on infinite loading.

Weird thing is that the extension is connected to remote since I can push the branch and fetch list of issues correctly: sc2

I tried reinstalling the extension, installed pre-release version, installed old versions, but they don’t all work. I also tried deleting and reinstalling vscode but it didn’t work. Clean install following this post didn’t work too.

Another problem is that the status of the created issues doesn’t sync with the currently checked out branch: ?1 The branch is now at 26, but status is out of sync with the extension (There should be a checkmark on the left side of 26: but there’s none): 2 At this phase, when I try to checkout to issue 26, then it throws this error: 3

This is happening to all of my projects out of sudden and I absolutely have no idea why this is happening.

  • Extension version: 0.78.1
  • VSCode Version: 1.85.2
  • OS: macOS Sonoma 14.2.1
  • Repository Clone Configuration (single repository/fork of an upstream repository): fork of an upstream repository
  • Github Product (Github.com/Github Enterprise version x.x.x): Github.com

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 1
  • Comments: 19 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Oh wow… finally it worked! Why couldn’t I think of checking my git version? I’ve seen some other issues here with the same error and they probably haven’t updated their git version as well.

Thank you so much! @alexr00

First, a big thank you for your thoroughness in including logs from so many places. It has absolutely helped in figuring this out. Now, on to next steps.

One of the early exceptions in your logs is about ignore-case not being a valid option for a git command. Based on your git logs, your git version is 2.10.1. This is from 2016!

@lszomoru, do you define a minimum git version that you require for the git extension? I checked back to 2.29 (which is from 2020), and that supports ignore-case.

@thisisgit can you try updating your git version?