Bug 26999 - git-add --edit pass terminal color sequences to editor
Summary: git-add --edit pass terminal color sequences to editor
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: git (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 14:23 MSK by Alexey V. Novikov
Modified: 2012-03-11 09:28 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey V. Novikov 2012-02-27 14:23:40 MSK
$ git-add -e Makefile
в результате в редакторе получаем:
^[[1mdiff --git a/Makefile b/Makefile^[[m
^[[1mindex 56966a7..5581f12 100644^[[m
^[[1m--- a/Makefile^[[m
^[[1m+++ b/Makefile^[[m

лечится с помощью unset TERM, но нормально в этом режиме vim работать не может,
не говоря уже про другие редакторы (например mcedit)

$ rpmquery git
git-1.7.9.2-alt1
Comment 1 Repository Robot 2012-03-08 06:50:36 MSK
git-1.7.9.3-alt1 -> sisyphus:

* Wed Mar 07 2012 Dmitry V. Levin <ldv@altlinux> 1.7.9.3-alt1
- Updated to maint v1.7.9.3.
- git add --edit: do not pass terminal color sequences to editor
  (closes: #26999).
Comment 2 Alexey V. Novikov 2012-03-11 09:28:37 MSK
Все теперь работает, спасибо. Закрываю