Microsoft/vscode

Git - improve error handling for publishing an empty repository

Open

#246,562 opened on Apr 15, 2025

 (2 comments) (0 reactions) (1 assignee)TypeScript (39,847 forks)batch import
Content: Web APIbugeffort: mediumgithelp wanted

Repository metrics

Stars
 (184,936 stars)
PR merge metrics
 (PR metrics pending)

Description

  1. mkdir test; cd test; git init .
  2. Add a file e.g. touch README.md
  3. Execute Git: Publish command
  4. Choose either private or public repo
  5. :bug: publish fails with the following error

Forked from https://github.com/microsoft/vscode/issues/244816#issuecomment-2756220251

Contributor guide