aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-22 20:33:12 -0800
committerJunio C Hamano <gitster@pobox.com>2010-12-22 20:33:12 -0800
commit4e3a1b24ad4ee3fc7dc21a8b8f39c41202d6b0a5 (patch)
treefad89c54afd4d08bfa331698e2c52093122ecbc0 /t/test-lib.sh
parent19128d6cd808800ffc6f14775315e77ece8b8fc7 (diff)
parentc2ed29b49b557b7bba8be147551cdd6e22fd743b (diff)
downloadgit-4e3a1b24ad4ee3fc7dc21a8b8f39c41202d6b0a5.tar.gz
git-4e3a1b24ad4ee3fc7dc21a8b8f39c41202d6b0a5.tar.xz
Merge branch 'maint'
* maint: test-lib.sh/test_decode_color(): use octal not hex in awk script
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 48fa51600..cb1ca973a 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -260,7 +260,7 @@ test_decode_color () {
if (n == 47) return "BWHITE";
}
{
- while (match($0, /\x1b\[[0-9;]*m/) != 0) {
+ while (match($0, /\033\[[0-9;]*m/) != 0) {
printf "%s<", substr($0, 1, RSTART-1);
codes = substr($0, RSTART+2, RLENGTH-3);
if (length(codes) == 0)