https://bugzilla.wikimedia.org/show_bug.cgi?id=35462
Web browser: ---
Bug #: 35462
Summary: Tell git on gerrit.wikimedia.org not to generate
spurious terminal sequences
Product: Wikimedia
Version: unspecified
Platform: All
URL: http://tools.wikimedia.pl/~saper/fail/git-remote-color
-fail
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: Git/Gerrit
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Blocks: 22596
Classification: Unclassified
Mobile Platform: ---
I am recording most of my git/gerrit commandline sessions with UNIX script(1)
utility to use that later for documentation and/or troubleshooting.
script has an interesting property that it records all control and terminal
characters as it receives them, so I have turned off colors and automatic use
of "less" as the page using
$ git config --global color.ui false
$ git config --global core.pager ''
However, when doing "git push" I am still getting some terminal control
characters (like ESC [ K meaning "erase to end of line" on *most* terminals)
from remote git instance running on gerrit.wikimedia.org.
This is a hexdump of the data received:
0000000: 7265 6d6f 7465 3a20 5265 736f 6c76 696e remote: Resolvin
0000010: 6720 6465 6c74 6173 3a20 2020 3025 2028 g deltas: 0% (
0000020: 302f 3429 2020 201b 5b4b 0d72 656d 6f74 0/4) .[K.remot
0000030: 653a 2052 6573 6f6c 7669 6e67 2064 656c e: Resolving del
0000040: 7461 733a 2020 2030 2520 2830 2f34 291b tas: 0% (0/4).
0000050: 5b4b 0d0a 7265 6d6f 7465 3a20 4552 524f [K..remote: ERRO
0000060: 523a 206d 6973 7369 6e67 2043 6861 6e67 R: missing Chang
0000070: 652d 4964 2069 6e20 636f 6d6d 6974 206d e-Id in commit m
0000080: 6573 7361 6765 1b5b 4b0d 0a72 656d 6f74 essage.[K..remot
0000090: 653a 2053 7567 6765 7374 696f 6e20 666f e: Suggestion fo
00000a0: 7220 636f 6d6d 6974 206d 6573 7361 6765 r commit message
00000b0: 3a1b 5b4b 0d0a 7265 6d6f 7465 3a20 436f :.[K..remote: Co
00000c0: 736d 6574 6963 2069 6d70 726f 7665 6d65 smetic improveme
00000d0: 6e74 7320 746f 2050 6f73 7472 6553 514c nts to PostreSQL
00000e0: 2075 7064 6174 6572 206f 7574 7075 741b updater output.
00000f0: 5b4b 0d0a 7265 6d6f 7465 3a20 0d0a 7265 [K..remote: ..re
0000100: 6d6f 7465 3a20 2a20 446f 6e27 7420 5741 mote: * Don't WA
0000110: 524e 206f 6e20 7365 7175 656e 6365 7320 RN on sequences
0000120: 616c 7265 6164 7920 6578 6973 7469 6e67 already existing
0000130: 1b5b 4b0d 0a72 656d 6f74 653a 202a 2041 .[K..remote: * A
0000140: 6c69 676e 2064 6f74 7320 6e69 6365 6c79 lign dots nicely
0000150: 2074 6f20 7468 6520 7265 7374 1b5b 4b0d to the rest.[K.
0000160: 0a72 656d 6f74 653a 2028 6368 6572 7279 .remote: (cherry
0000170: 2070 6963 6b65 6420 6672 6f6d 2063 6f6d picked from com
0000180: 6d69 7420 6264 3761 3236 3865 3462 6532 mit bd7a268e4be2
0000190: 6461 3233 6261 3062 3939 3433 6333 6230 da23ba0b9943c3b0
00001a0: 6261 3161 6338 3832 3934 6463 291b 5b4b ba1ac88294dc).[K
00001b0: 0d0a 7265 6d6f 7465 3a20 0d0a 7265 6d6f ..remote: ..remo
00001c0: 7465 3a20 4368 616e 6765 2d49 643a 2049 te: Change-Id: I
00001d0: 6133 3534 6163 6438 3739 6333 6464 3834 a354acd879c3dd84
00001e0: 3065 3762 6531 6533 6336 6436 6663 3738 0e7be1e3c6d6fc78
00001f0: 6436 3936 3633 3164 1b5b 4b0d 0a54 6f20 d696631d.[K..To
0000200: 7373 683a 2f2f 7361 7065 7240 7265 7669 ssh://saper@revi
0000210: 6577 3a32 3934 3138 2f6d 6564 6961 7769 ew:29418/mediawi
0000220: 6b69 2f63 6f72 652e 6769 740d 0a20 2120 ki/core.git.. !
0000230: 5b72 656d 6f74 6520 7265 6a65 6374 6564 [remote rejected
0000240: 5d20 4845 4144 202d 3e20 7265 6673 2f66 ] HEAD -> refs/f
0000250: 6f72 2f52 454c 315f 3139 2f50 6f73 7467 or/REL1_19/Postg
0000260: 7265 5351 4c20 286d 6973 7369 6e67 2043 reSQL (missing C
0000270: 6861 6e67 652d 4964 2069 6e20 636f 6d6d hange-Id in comm
0000280: 6974 206d 6573 7361 6765 290d 0a it message)..
Looks like setting color.ui to false and core.pager to nothing on
a remote server (in out case it would be gerrit.wm.org) does not help.
Any hints how to get rid of these?
as using "git push --porcelain"
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l