Re: [PATCH 3/3] completion: fix bugs with slashes in remote names
- From
David Mandelberg <david@mandelberg.org>
- Date
- Mar 7, 2025, 21:46 UTC
- Message-ID
- <e06caa06-0176-4340-958e-4c43650b40e3@mandelberg.org>
- In-Reply-To
- <CALnO6CBDjQgc2TNaXbBWiUNqWV=RgrL2Ry-7HzRu3Ozuqazzvw@mail.gmail.com>
Op 2025-03-06 om 15:24 schreef D. Ben Knoble:
> I'm willing to manually test the patch if I can understand how to > reproduce the issue—it sounds like having a remote name with a slash > is sufficient?
Yup. I was able to reproduce it with these commands:
/tmp/tmp.zOjfmdMx1i$ git init foo Initialized empty Git repository in /tmp/tmp.zOjfmdMx1i/foo/.git/ /tmp/tmp.zOjfmdMx1i$ cd foo /tmp/tmp.zOjfmdMx1i/foo$ git remote add with/slash /path/does/not/matter /tmp/tmp.zOjfmdMx1i/foo$ git commit -m 'test' --allow-empty [main (root-commit) 4b95a99] test /tmp/tmp.zOjfmdMx1i/foo$ git update-ref refs/remotes/with/slash/main 4b95a99
Then type:
git push with/slash :ma<Tab>