/help

Status Closed — not planned
Reported on v2.1.227
Maintainer reply None cached
Activity 1 comment · opened Aug 11, 2026 · closed Aug 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Git itself works fine and doesn't flag anything about the directory (just the expected "not a git repository" since your home folder isn't a repo). Ownership and permissions on git.exe are normal too.

So the "unsafe location (current directory)" error is coming from Claude Code's own internal git-detection logic for the /plugin marketplace add command, not an actual problem with your git install or PATH. This looks like a bug/limitation in that command on Windows — possibly it's being overly strict about running from a non-repo directory, or misinterpreting your per-user Git install path.

What Should Happen?

Git itself works fine and doesn't flag anything about the directory (just the expected "not a git repository" since your home folder isn't a repo). Ownership and permissions on git.exe are normal too.

So the "unsafe location (current directory)" error is coming from Claude Code's own internal git-detection logic for the /plugin marketplace add command, not an actual problem with your git install or PATH. This looks like a bug/limitation in that command on Windows — possibly it's being overly strict about running from a non-repo directory, or misinterpreting your per-user Git install path.

Error Messages/Logs

Steps to Reproduce

Git itself works fine and doesn't flag anything about the directory (just the expected "not a git repository" since your home folder isn't a repo). Ownership and permissions on git.exe are normal too.

So the "unsafe location (current directory)" error is coming from Claude Code's own internal git-detection logic for the /plugin marketplace add command, not an actual problem with your git install or PATH. This looks like a bug/limitation in that command on Windows — possibly it's being overly strict about running from a non-repo directory, or misinterpreting your per-user Git install path.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.227

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗