Blame git-var-GIT_EDITOR.patch
|
|
b075906 |
diff --git a/t/20-simple.t b/t/20-simple.t
|
|
|
b075906 |
index 013383a..941b4c6 100644
|
|
|
b075906 |
--- a/t/20-simple.t
|
|
|
b075906 |
+++ b/t/20-simple.t
|
|
|
b075906 |
@@ -74,25 +74,6 @@ $r->run( add => 'readme.txt' );
|
|
|
b075906 |
# unset all editors
|
|
|
b075906 |
delete @ENV{qw( EDITOR VISUAL GIT_EDITOR )};
|
|
|
b075906 |
|
|
|
b075906 |
-SKIP: {
|
|
|
b075906 |
- BEGIN { $tests += 2 }
|
|
|
b075906 |
- skip "these tests require git >= 1.6.6, but we only have $version", 2
|
|
|
b075906 |
- if Git::Repository->version_lt('1.6.6');
|
|
|
b075906 |
-
|
|
|
b075906 |
- skip "editor defined directly in .gitconfig", 2
|
|
|
b075906 |
- if $r->run( config => 'core.editor' );
|
|
|
b075906 |
-
|
|
|
b075906 |
- skip "this test does not work with msysgit on Win32", 2
|
|
|
b075906 |
- if $^O eq 'MSWin32';
|
|
|
b075906 |
-
|
|
|
b075906 |
- ok( !eval { $r->run( var => 'GIT_EDITOR' ); 1; }, 'git var GIT_EDITOR' );
|
|
|
b075906 |
- like(
|
|
|
b075906 |
- $@,
|
|
|
b075906 |
- qr/^fatal: Terminal is dumb, but EDITOR unset /,
|
|
|
b075906 |
- 'Git complains about lack of smarts and editor'
|
|
|
b075906 |
- );
|
|
|
b075906 |
-}
|
|
|
b075906 |
-
|
|
|
b075906 |
# with git commit it's not fatal
|
|
|
b075906 |
BEGIN { $tests += 4 }
|
|
|
b075906 |
SKIP: {
|