Commit e586a36
completion: fix bugs with slashes in remote names
Previously, some calls to for-each-ref passed fixed numbers of path
components to strip from refs, assuming that remote names had no slashes
in them. This made completions like:
git push github/dseomn :com<Tab>
Result in:
git push github/dseomn :dseomn/completion-remote-slash
With this patch, it instead results in:
git push github/dseomn :completion-remote-slash
Signed-off-by: David Mandelberg <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 40878f2 commit e586a36
File tree
2 files changed
+189
-29
lines changed- contrib/completion
- t
2 files changed
+189
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
794 | 793 | | |
795 | 794 | | |
796 | 795 | | |
797 | 796 | | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
803 | 826 | | |
804 | 827 | | |
805 | 828 | | |
| |||
905 | 928 | | |
906 | 929 | | |
907 | 930 | | |
908 | | - | |
| 931 | + | |
| 932 | + | |
909 | 933 | | |
910 | 934 | | |
911 | 935 | | |
| |||
0 commit comments