Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

Stack trace on missing git remote for set-commits #1462

Closed

Description

@sentry-junior

When uploading sourcemaps / setting commits on a release from a local git repo with no remote configured (git init only), the CLI fails with Could not determine repository name from local git remote and prints a full stack trace.

Raised by Jan Peer Stöcklmair while trying the new CLI with JS SDK / bundler plugins. Confirmed as a bug: for this expected condition the stack trace should not be shown.

Reproduction

  1. git init a project with no git remote
  2. Run a release flow that sets commits (e.g. Vite/bundler plugin sourcemap upload with commits on release)
  3. Observe ky [SentryError]: Could not determine repository name from local git remote with a full stack (exitCode 21)

Notes

  • Bundler plugins log this as ignorable unless commits-on-release are desired, but the underlying CLI error still dumps a stack
  • Error surfaces via SentryCliAdapter.setCommits from @sentry/bundler-plugins calling into sentry@0.43.0

error/stacktrace

[sentry-vite-plugin] Debug: An error occurred setting commits on release (this message can be ignored unless you commits on release are desired): ky [SentryError]: Could not determine repository name from local git remote.
    at H9 (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/sentry@0.43.0/node_modules/sentry/dist/index.mjs:6477:5801)
    at Srt (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/sentry@0.43.0/node_modules/sentry/dist/index.mjs:6477:7113)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async SentryCliAdapter.setCommits (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/@sentry+bundler-plugins@file+.yalc+@sentry+bundler-plugins_rollup@4.62.5/node_modules/@sentry/bundler-plugins/build/esm/core/cli.js:46:5)
    at async Object.createRelease (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/@sentry+bundler-plugins@file+.yalc+@sentry+bundler-plugins_rollup@4.62.5/node_modules/@sentry/bundler-plugins/build/esm/core/build-plugin-manager.js:272:13)
    at async Object.writeBundle (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/@sentry+bundler-plugins@file+.yalc+@sentry+bundler-plugins_rollup@4.62.5/node_modules/@sentry/bundler-plugins/build/esm/rollup/index.js:168:7)
    at async Promise.all (index 0)
    at async PluginDriver.hookParallel (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/rollup@4.62.5/node_modules/rollup/dist/es/shared/node-entry.js:22703:9)
    at async file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/rollup@4.62.5/node_modules/rollup/dist/es/shared/node-entry.js:23789:13
    at async catchUnfinishedHookActions (file:///Users/janpeer/dev/temp-cli-no-rewrite/node_modules/.pnpm/rollup@4.62.5/node_modules/rollup/dist/es/shared/node-entry.js:23147:16) {
  exitCode: 21,
  stderr: ''
}

Requested by byk.

--

View Junior Session [Sentry]

Activity

  1. added
    jared
    on Aug 25, 2026
  2. MathurAditya724 commented on Aug 25, 2026

    @MathurAditya724
    Member

    Jared, start working on this. Make the missing-git-remote condition user-facing without a stack trace, add regression coverage, self-review it, and open a scoped PR.

  3. added a commit that references this issue on Aug 25, 2026
    d74490e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

jared

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions