From: Maximiliano Curia <maxy@debian.org>
Date: Sat, 2 Sep 2017 14:06:57 +0200
Subject: Disable test calling editor

Upstream uses vi as the default editor, while the debian packages default to
the editor command, thus the different behavior.

Author: Maximiliano Curia <maxy@debian.org>
Forwarded: not-needed
Last-Update: 2014-03-26
---
 t/t3300-edit.sh | 2 ++
 1 file changed, 2 insertions(+)

Index: stgit/t/t3300-edit.sh
===================================================================
--- stgit.orig/t/t3300-edit.sh
+++ stgit/t/t3300-edit.sh
@@ -3,6 +3,8 @@
 test_description='Test "stg edit"'
 
 . ./test-lib.sh
+# test_done
+# exit
 
 test_expect_success 'Attempt edit on uninitialized branch' '
     command_error stg edit 2>err &&
@@ -34,9 +36,9 @@ test_expect_success 'Setup' '
 '
 
 # Commit parse functions.
-msg () { git cat-file -p $1 | sed '1,/^$/d' | tr '\n' / | sed 's,/*$,,' ; }
-auth () { git log -n 1 --pretty=format:"%an, %ae" $1 ; }
-adate () { git log -n 1 --pretty=format:%ai $1 ; }
+msg() { git cat-file -p $1 | sed '1,/^$/d' | tr '\n' / | sed 's,/*$,,'; }
+auth() { git log -n 1 --pretty=format:"%an, %ae" $1; }
+adate() { git log -n 1 --pretty=format:%ai $1; }
 
 test_expect_success 'Empty editor aborts edit' '
     write_script diffedit <<-\EOF &&
@@ -98,7 +100,7 @@ test_expect_success 'Set patch message w
     test "$(msg HEAD)" = "Pride and Prejudice"
 '
 
-omit_date () { sed "s/^Date:.*$/Date:   <omitted>/" ; }
+omit_date() { sed "s/^Date:.*$/Date:   <omitted>/"; }
 
 test_expect_success 'Save template to file' '
     stg edit --save-template saved-tmpl p2 &&
@@ -133,9 +135,8 @@ test_expect_success 'Save template to st
 #   5. EDITOR
 #   6. editor
 
-mkeditor ()
-{
-    write_script "$1" <<-EOF
+mkeditor() {
+  write_script "$1" <<-EOF
 	printf "$1" >>"\$1"
 	EOF
 }
