git-cmd: set the TERM appropriately to avoid warnings from 'less'
authorPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 8 Feb 2013 14:05:23 +0000 (8 14:05 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 8 Feb 2013 14:05:23 +0000 (8 14:05 +0000)
This fixes issue #98 by applying the change used in commit 4d0911d to the
batch script used to start a PortableGit shell. Ensuring the TERM variable
is set avoids a "WARNING: terminal is not fully functional" warning from
less.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-cmd.bat

index 6bfccff..a303800 100644 (file)
@@ -10,6 +10,7 @@
 @if not exist "%HOME%" @set HOME=%USERPROFILE%\r
 \r
 @set PLINK_PROTOCOL=ssh\r
+@if not defined TERM set TERM=msys\r
 \r
 @cd %HOME%\r
 @start %COMSPEC%\r