{"thread":{"id":"47371","subject":"Bug in git-completion.bash in __git_heads() function","startedAt":"2017-12-04T09:17:19Z","lastAt":"2017-12-04T09:43:28Z","messageCount":2,"participants":["Amandeep Gautam","SZEDER Gábor"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"334035","messageId":"CAEZzL1BOTLzrqZRehBzE8cwCvTY6qgrwZsbq5gcxWUbGyva8FQ@mail.gmail.com","threadId":"47371","inReplyTo":null,"subject":"Bug in git-completion.bash in __git_heads() function","fromName":"Amandeep Gautam","fromEmail":"amandeepgautam5@gmail.com","sentAt":"2017-12-04T09:16:52Z","receivedAt":"2017-12-04T09:17:19Z","isPatch":false,"sender":{"key":"amandeepgautam5@gmail.com","avatar":null},"body":"Hello,\n   This is the first time I am sending a bug report here, so if I have\nnot met the criteria please let me know.\n   I found that at:\nhttps://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L371,\nthe usage of refname:strip=2 generates error:\n\nfatal: unknown refname: format strip=2.\n\nI am using git version 1.9.1. However using %(refname:short), I\nbelieve produces intended behaviour.\n\nIf my findings are validated, I would be willing to submit a patch for\nthis. Please let me know.\n\nRegards,\nAman\n"},{"id":"334037","messageId":"20171204094317.7344-1-szeder.dev@gmail.com","threadId":"47371","inReplyTo":"CAEZzL1BOTLzrqZRehBzE8cwCvTY6qgrwZsbq5gcxWUbGyva8FQ@mail.gmail.com","subject":"Re: Bug in git-completion.bash in __git_heads() function","fromName":"SZEDER Gábor","fromEmail":"szeder.dev@gmail.com","sentAt":"2017-12-04T09:43:17Z","receivedAt":"2017-12-04T09:43:28Z","isPatch":false,"sender":{"key":"szeder.dev@gmail.com","avatar":"https://avatars.githubusercontent.com/u/116324?v=4"},"body":"Hi,\n\n>    This is the first time I am sending a bug report here, so if I have\n> not met the criteria please let me know.\n>    I found that at:\n> https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L371,\n> the usage of refname:strip=2 generates error:\n> \n> fatal: unknown refname: format strip=2.\n> \n> I am using git version 1.9.1. However using %(refname:short), I\n> believe produces intended behaviour.\n\nThe for-each-ref format modifier ':strip=<N>' was introduced in\nv2.7.1~15^2 (tag: do not show ambiguous tag names as \"tags/foo\",\n2016-01-25) and the completion script started using it in\nv2.13.0-rc0~46^2~8 (completion: don't disambiguate tags and branches,\n2017-03-23).\n\nIt seems you're using an old Git with a recentish completion script.\nYou could either upgrade Git, or use the completion script that was\nshipped with it.\n\n\nGábor\n\n"}]}