We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a git branch has a / in it, promptd will not display the name correctly.
Example:
dkg@dkg:~/D/o/django-grappelli [2.7.x]$ cat .git/HEAD ref: refs/heads/dev/2.7.x dkg@dkg:~/D/o/django-grappelli [2.7.x]$ git branch -v * dev/2.7.x ded3430 Merge pull request #603 from mochawich/patch-1 master 52ba68c changelog update dkg@dkg:~/D/o/django-grappelli [2.7.x]$ promptd-vcs [2.7.x]
The issue is in git.d on line 148
// If we're on a branch head, .git/HEAD will look like // ref: refs/heads/<branch> if (headSHA.startsWith("ref:")) return headSHA.baseName;
The return headSHA.baseName will cut off at the wrong /.
return headSHA.baseName
The text was updated successfully, but these errors were encountered:
Fix issue mrkline#12 branches with / in it are cut-off
900a3fb
This fixes the cut off branch names when a branch has a / in the name. Example: "dev/2.7.x" was cut off to "2.7.x".
Merge pull request #13 from dgollub/fix-issue-12
49506b4
Fix issue #12 branches with / in it are cut-off
No branches or pull requests
When a git branch has a / in it, promptd will not display the name correctly.
Example:
The issue is in git.d on line 148
The
return headSHA.baseName
will cut off at the wrong /.The text was updated successfully, but these errors were encountered: