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

Fix newline in git module repo names breaking display #193

Merged
merged 3 commits into from
Jun 8, 2018

Conversation

baustinanki
Copy link
Contributor

After setting up the git module with multiple repos and switching
between them, I observed some graphical wonkiness in the display:

After adding some log statements, I tracked it down to the
GitRepo.Repository field having a newline in it after it's set
from a command execution's stdout. This change strips the
repository path of spaces when assigning to the Repository field,
which fixes the display issues.

baustinanki and others added 2 commits June 8, 2018 14:44
After setting up the git module with multiple repos and switching
between them, I observed some graphical wonkiness in the display:

https://i.imgur.com/R3e7eij.png

After adding some log statements, I tracked it down to the
`GitRepo.Repository` field having a newline in it after it's set
from a command execution's stdout. This change strips the
repository path of spaces when assigning to the `Repository` field,
which fixes the display issues.
@senorprogrammer senorprogrammer added 🐛 bug "Houston, we've had a problem." medium labels Jun 8, 2018
@senorprogrammer
Copy link
Collaborator

Thanks for the PR - will merge once TravisCI passes.

@senorprogrammer senorprogrammer removed medium 🐛 bug "Houston, we've had a problem." labels Jun 8, 2018
@senorprogrammer senorprogrammer merged commit 59cd1d2 into wtfutil:master Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants