Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Untracked files with spaces in the path do not show a preview with ga #271

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

sandr01d
Copy link
Collaborator

@sandr01d sandr01d commented Jan 8, 2023

Check list

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation

Description

Added escaped quotes around the file variable inside the preview string in _forgit_add() to prevent word splitting on files that have spaces in their file path. As a result such files do now generate a preview as expected.

Closes #263

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation change

Test environment

  • Shell
    • bash
    • zsh
    • fish
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:

…h a space in their path to not display a preview
@cjappl
Copy link
Collaborator

cjappl commented Jan 10, 2023

Hoo boy! Ugly but effective. Thumbs up from me. Will wait to see if @carlfriedrich has any thing, otherwise I'll merge it soon.

@cjappl cjappl requested a review from wfxr January 10, 2023 19:39
@carlfriedrich carlfriedrich merged commit 329523b into wfxr:master Jan 11, 2023
@sandr01d sandr01d deleted the fix-ga-untracked branch January 11, 2023 21:02
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.

Untracked files with spaces in the path do not show a preview with ga
3 participants