For some reason whenever I do a git push it returns:
remote: TERM environment variable not set.
I’ve added
export TERM=linux
to both ~/.bash and ~/.bashrc but it doesn’t seem to make any difference. I was having similar problems with rsync last week but ended up giving up.
Any ideas?
It looks like, as the message implies, something on the remote system is complaining about
$TERMnot being set, so setting it locally wouldn’t do any good. Normallygit pushshouldn’t depend on$TERM, either on the local system or on the remote server.My best guess is that there’s a hook somewhere that invokes a command that depends on
$TERM. It shouldn’t do that. Take a look at the configuration of the server to which you’repushing, or talk to someone who can.(Incidentally, the string “environment variable not set” doesn’t appear anywhere in the git sources.)