Skip to content

Forked extensions windows cloning error when user folder has space - #22914

Merged
raycastbot merged 5 commits into
raycast:mainfrom
vensauro:forked-extensions
Nov 17, 2025
Merged

raycastbot merged 5 commits into
raycast:mainfrom
vensauro:forked-extensions

Conversation

@vensauro

Copy link
Copy Markdown
Contributor

Description

Fix error #22690

on windows, if the user folder for cloning the repo, has space in the name, the extension doesn't works.

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: forked-extensions Issues related to the forked-extensions extension platform: macOS platform: Windows labels Nov 16, 2025
@raycastbot

raycastbot commented Nov 16, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @LitoMore @pernielsentikaer @yusifaliyevpro you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

Due to our current reduced availability, the initial review may take up to 10 business days.

@greptile-apps

greptile-apps Bot commented Nov 16, 2025 •

Copy link
Copy Markdown
Contributor

Greptile Summary

  • Fixes Windows cloning error in forked extensions when user folder paths contain spaces by properly quoting paths in git commands
  • Extracts existing path quoting logic into a reusable addQuotesOnWindows utility function to follow DRY principle
  • Adds appropriate CHANGELOG.md entry with proper {PR_MERGE_DATE} template format documenting the fix for issue [Forked Extensions] doesn't work on windows when username has space #22690

Important Files Changed

Filename Overview
extensions/forked-extensions/src/utils.ts Added addQuotesOnWindows utility function to handle Windows paths with spaces
extensions/forked-extensions/src/git.ts Applied path quoting to repository path in clone command to fix Windows spawning issue

Confidence score: 5/5

  • This PR is safe to merge with minimal risk and addresses a specific Windows platform bug
  • Score reflects a focused bug fix with clear implementation, proper testing, and good code practices including DRY principle adherence
  • No files require special attention as the changes are straightforward and well-implemented

@greptile-apps greptile-apps Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format

@greptile-apps

greptile-apps Bot commented Nov 16, 2025

Copy link
Copy Markdown
Contributor

Greptile Summary

  • Fixed Windows git clone failure when repository path contains spaces by wrapping path in quotes
  • Extracted path quoting logic into reusable addQuotesOnWindows utility function for better code organization

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The fix is straightforward, well-tested (user confirmed), addresses a specific Windows bug, and follows the same pattern already used for git executable paths
  • No files require special attention

Important Files Changed

Filename Overview
extensions/forked-extensions/src/git.ts Refactored Windows path handling by extracting quote logic to shared utility and applying it to repository path in clone command
extensions/forked-extensions/src/utils.ts Added new utility function to handle Windows path quoting for paths containing spaces

@vensauro

Copy link
Copy Markdown
Contributor Author

I need someone to test it on mac, to see it is not breaking, I know that i tried to change just on windows, but even this way, more code is more trouble

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format

@LitoMore LitoMore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raycast-extensions-bot raycast-extensions-bot Bot added the Approved Approved by a user label Nov 16, 2025
@pernielsentikaer pernielsentikaer self-assigned this Nov 17, 2025
@raycastbot
raycastbot merged commit a4d9e68 into raycast:main Nov 17, 2025
@github-actions

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 17, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@vensauro).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

@vensauro
vensauro deleted the forked-extensions branch November 24, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Approved by a user extension fix / improvement Label for PRs with extension's fix improvements extension: forked-extensions Issues related to the forked-extensions extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants