t1401: test symbolic-ref exit codes on a non-symbolic ref - #2204
t1401: test symbolic-ref exit codes on a non-symbolic ref#2204nikolauspschuetz wants to merge 1 commit into
Conversation
|
/submit |
|
Submitted as pull.2204.git.1786655554197.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
345e664 to
fa9dd1d
Compare
|
This branch is now known as |
|
This patch series was integrated into seen via git@799dea8. |
|
There was a status update in the "New Topics" section about the branch A few additional tests. Needs review. source: <pull.2204.git.1786655554197.gitgitgadget@gmail.com> source: <pull.2203.git.1786653837190.gitgitgadget@gmail.com> |
|
There was a status update in the "Cooking" section about the branch A few additional tests. Needs review. source: <pull.2204.git.1786655554197.gitgitgadget@gmail.com> source: <pull.2203.git.1786653837190.gitgitgadget@gmail.com> |
|
There was a status update in the "Cooking" section about the branch A few additional tests. Needs review. source: <pull.2204.git.1786655554197.gitgitgadget@gmail.com> source: <pull.2203.git.1786653837190.gitgitgadget@gmail.com> |
|
Patrick Steinhardt wrote on the Git mailing list (how to reply to this email): |
|
User |
fa9dd1d to
22694da
Compare
|
Nikolaus Schuetz wrote on the Git mailing list (how to reply to this email): |
|
/submit |
|
Submitted as pull.2204.v2.git.1787264402361.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
|
There was a status update in the "Cooking" section about the branch A few additional tests. Expecting a reroll. cf. <20260820151325.58087-1-nikolauspschuetz@gmail.com> cf. <20260820144648.47267-1-nikolauspschuetz@gmail.com> source: <pull.2204.git.1786655554197.gitgitgadget@gmail.com> source: <pull.2203.git.1786653837190.gitgitgadget@gmail.com> |
|
This patch series is no longer integrated into seen. |
|
There was a status update in the "Cooking" section about the branch A few additional tests. Waiting for response. cf. <xmqq5x13stxt.fsf@gitster.g> source: <pull.2203.v2.git.1787264417682.gitgitgadget@gmail.com> source: <pull.2204.v2.git.1787264402361.gitgitgadget@gmail.com> |
|
This patch series was integrated into seen via git@a426bf9. |
|
Patrick Steinhardt wrote on the Git mailing list (how to reply to this email): |
|
Junio C Hamano wrote on the Git mailing list (how to reply to this email): |
|
Phillip Wood wrote on the Git mailing list (how to reply to this email): |
|
User |
|
Nikolaus Schuetz wrote on the Git mailing list (how to reply to this email): |
|
Junio C Hamano wrote on the Git mailing list (how to reply to this email): |
…ic ref git-symbolic-ref(1) documents that reading a name that is not a symbolic ref fails, and that --quiet does so silently. Tests such as t2020 and t5621 already rely on "symbolic-ref -q HEAD" failing on a detached HEAD, but none checks that the plain form reports the error or that --quiet stays silent. Assert that a non-symbolic ref fails with the "is not a symbolic ref" message, and that --quiet fails with no output. Use test_must_fail rather than pinning the exact exit codes, which are documented but not worth freezing in the test. Signed-off-by: Nikolaus Schuetz <nikolauspschuetz@gmail.com>
22694da to
0391dcc
Compare
|
/submit |
|
Submitted as pull.2204.v3.git.1787763107646.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
|
This patch series is no longer integrated into seen. |
|
There was a status update in the "Cooking" section about the branch A few tests for the reference handling subsystem have been added to exercise the handling of forbidden characters and symbolic references. Needs review. source: <pull.2203.v2.git.1787264417682.gitgitgadget@gmail.com> source: <pull.2204.v3.git.1787763107646.gitgitgadget@gmail.com> |
|
This patch series was integrated into seen via git@e222d51. |
|
There was a status update in the "Cooking" section about the branch A few tests for the reference handling subsystem have been added to exercise the handling of forbidden characters and symbolic references. Needs review. source: <pull.2203.v2.git.1787264417682.gitgitgadget@gmail.com> source: <pull.2204.v3.git.1787763107646.gitgitgadget@gmail.com> |
|
There was a status update in the "Cooking" section about the branch A few tests for the reference handling subsystem have been added to exercise the handling of forbidden characters and symbolic references. Needs review. source: <pull.2203.v2.git.1787264417682.gitgitgadget@gmail.com> source: <pull.2204.v3.git.1787763107646.gitgitgadget@gmail.com> |
|
Patrick Steinhardt wrote on the Git mailing list (how to reply to this email): |
|
There was a status update in the "Cooking" section about the branch A few tests for the reference handling subsystem have been added to exercise the handling of forbidden characters and symbolic references. Will merge to 'next'? cf. <apUdDyG98D5upbhj@pks.im> source: <pull.2203.v2.git.1787264417682.gitgitgadget@gmail.com> source: <pull.2204.v3.git.1787763107646.gitgitgadget@gmail.com> |
git-symbolic-ref(1) documents that reading a name that is not a symbolic ref exits with a non-zero status, and that --quiet does so silently rather than printing a diagnostic. This exit-code contract was untested.
This adds two tests: querying a non-symbolic ref exits 128 with the usual "is not a symbolic ref" message, and --quiet instead exits 1 with no output.
Test-only; documents existing behaviour, in the spirit of 919eb8a (t1402: check for refs ending with a dot).
cc: Patrick Steinhardt ps@pks.im
cc: Phillip Wood phillip.wood123@gmail.com