Package: gitolite
Version: 2.2-1
Severity: normal
Tags: patch

In Debian, the sensible-editor(1) should be used, not undefined
EDITOR. The following patch adds support to this:

  Try sensible-editor
  Else EDITOR
  Else vi

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gitolite depends on:
ii  adduser                3.113
ii  debconf [debconf-2.0]  1.5.41
ii  git [git-core]         1:1.7.7.3-1
ii  git-core               1:1.7.7.3-1
ii  openssh-server         1:5.9p1-2
ii  perl                   5.14.2-6

gitolite recommends no packages.

Versions of packages gitolite suggests:
ii  git-daemon-run  1:1.7.7.3-1
ii  gitweb          1:1.7.7.3-1

-- debconf information excluded

-- debsums errors found:
debsums: changed file /usr/share/gitolite/gl-setup (from gitolite package)
>From 5ba00d94270ed70065c35c5ac60cfd6a12eeef3b Mon Sep 17 00:00:00 2001
From: Jari Aalto <[email protected]>
Date: Mon, 2 Jan 2012 10:20:38 +0200
Subject: [PATCH] Use sensible-editor, then EDITOR, else vi
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Jari Aalto <[email protected]>
---
 gl-setup |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gl-setup b/gl-setup
index 3ce8827..2a8bfe3 100755
--- a/gl-setup
+++ b/gl-setup
@@ -84,7 +84,7 @@ else
         printf "The default settings in the "rc" file ($GL_RC) are fine for most\n"
         printf "people but if you wish to make any changes, you can do so now.\n\nhit enter..."
         read i
-        ${EDITOR:-vi} $GL_RC
+        sensible-editor $GL_RC 2> /dev/null || ${EDITOR:-vi} $GL_RC
     fi
 fi
 
-- 
1.7.7.3

Reply via email to