Skip to content

Conversation

@ABHIRAMSHIBU
Copy link

  • resolve the clone target to an absolute path and run git from its parent
  • avoid spawning git with a non-existent cwd that reported “Git command not found”

…ation

- resolve the clone target to an absolute path and run git from its parent
- avoid spawning git with a non-existent cwd that reported “Git command not found”

Co-authored-by: Preet Patel <preet.makz@gmail.com>
yasien-c added a commit to yasien-c/git-mcp-server that referenced this pull request Dec 2, 2025
- Add Dockerfile with multi-stage Bun build on Debian
- Optimize .dockerignore for smaller build context
- Fix path resolution bug that caused ENOENT errors (PR cyanheads#33)
yasien-c added a commit to yasien-c/git-mcp-server that referenced this pull request Dec 2, 2025
Resolves issue where clone failed with 'posix_spawn git' error because
the target directory doesn't exist yet. Now clones from parent dir.
Ref: cyanheads#33
yasien-c added a commit to yasien-c/git-mcp-server that referenced this pull request Dec 2, 2025
* feat: add Docker support with path validation fix

- Add Dockerfile with multi-stage Bun build on Debian
- Optimize .dockerignore for smaller build context
- Fix path resolution bug that caused ENOENT errors (PR cyanheads#33)

* ci: add GHCR Docker image build workflow

- Build and push to ghcr.io on main branch push
- Multi-platform support (amd64, arm64)
- Semantic versioning tags on release
- Manual trigger with custom tag support

* fix(clone): run git clone from parent directory to avoid ENOENT

Resolves issue where clone failed with 'posix_spawn git' error because
the target directory doesn't exist yet. Now clones from parent dir.
Ref: cyanheads#33

* feat(clone): enhance URL validation for repository cloning

Updated the input schema to enforce a minimum length for the repository URL and clarified the supported URL formats (HTTPS and SSH) in the description. This improves user guidance and input validation for the git clone tool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant