Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Error
I want to install a marketplace from a private git-server with a valid
TLS-certificate and which is reachable. Cursor runs in a docker sandbox -
see Cursor | Docker Docs for details.
The installation of the very same marketplace works fine for claude code and
codex.
It fails with
Failed to resolve git ref "HEAD" for https://example.org/public/agents.git: git ls-remote did not return a resolvable commit for HEAD
for cursor.
The full error
Plugins Installed Marketplace (←/→ or tab to cycle)
Pasted Link
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ⌕ https://example.org/public/agents/agent-plugins.git │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Failed to resolve git ref "HEAD" for https://example.org/public/agents.git: git ls-remote did not return a resolvable commit for HEAD
(https://example.org/public/agents.git)
Running the commands myself in the same sandbox in “!” mode in cursor works fine.
$ git ls-remote https://example.org/public/agents/agent-plugins.git exit 0
a1084b7301320ad335936d94646ab3d92392e2ba HEAD
a1084b7301320ad335936d94646ab3d92392e2ba refs/heads/main
$ git rev-parse HEAD exit 0
03af8d4e2f55ad5a516a75f034ca66354bfa2d9c
environment
Cursor
cursor: v2026.07.16-899851b
Docker Image
FROM docker/sandbox-templates:cursor-agent-docker
USER root
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends locales fonts-liberation \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 \
&& rm -rf /var/lib/apt/lists
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
LANGUAGE=en_US:en
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends imagemagick ghostscript graphviz texlive-latex-recommended \
&& rm -rf /var/lib/apt/lists
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends vim curl tar xz-utils shellcheck weasyprint pandoc \
&& rm -rf /var/lib/apt/lists
RUN chown -R agent:agent /home/agent
USER agent
RUN agent update && rm -rf ~/.cursor ~/.cache
Steps to Reproduce
Setup sbx - Get started with Docker Sandboxes | Docker Docs
- brew trust docker/tap
- brew install docker/tap/sbx
- sbx login
run cursor in sandbox
- sbx run cursor
- /plugin marketplace add htxxps://example.org/public/agents/agent-plugins.git
Expected Behavior
Marketplace is installed
Operating System
MacOS
Version Information
cursor: v2026.07.16-899851b
For AI issues: which model did you use?
Auto
Does this stop you from using Cursor
Yes - Cursor is unusable