Commit 4a868fd
pretty: parse the gpg status lines rather than the output
Currently, parse_signature_lines() parses the gpg output for strings
which depend on LANG so it fails to recognize good commit signatures
(and thus does not fill in %G? and the like) in most locales.
Make it parse the status lines from gpg instead, which are the proper
machine interface. This fixes the problem described above.
There is a change in behavior for "%GS" which we intentionally do not
work around: "%GS" used to put quotes around the signer's uid (or
rather: it inherited from the gpg user output). We output the uid
without quotes now, just like author and committer names.
Signed-off-by: Michael J Gruber <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 9cc4ac8 commit 4a868fd
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
| |||
881 | 882 | | |
882 | 883 | | |
883 | 884 | | |
884 | | - | |
885 | | - | |
| 885 | + | |
| 886 | + | |
886 | 887 | | |
887 | 888 | | |
888 | 889 | | |
889 | 890 | | |
890 | | - | |
| 891 | + | |
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
| |||
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
899 | | - | |
| 900 | + | |
900 | 901 | | |
901 | 902 | | |
902 | 903 | | |
| |||
908 | 909 | | |
909 | 910 | | |
910 | 911 | | |
| 912 | + | |
911 | 913 | | |
912 | 914 | | |
913 | 915 | | |
| |||
917 | 919 | | |
918 | 920 | | |
919 | 921 | | |
920 | | - | |
| 922 | + | |
921 | 923 | | |
922 | 924 | | |
923 | 925 | | |
| 926 | + | |
924 | 927 | | |
925 | 928 | | |
926 | 929 | | |
| 930 | + | |
927 | 931 | | |
928 | 932 | | |
929 | 933 | | |
| |||
0 commit comments