When i push to get respo, i get error
stdin: is not a tty
Other than this error on push and pull, everything worked fine.
SOLUTION 1
Add following to top of file /home/git/.bashrc
if [ $(expr index "$-" i) -eq 0 ]; then return fi
Modified .bashrc on my server
root@server70 [~]# cat /home/git/.bashrc # .bashrc if [ $(expr index "$-" i) -eq 0 ]; then return fi # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions root@server70 [~]#
SOLUTION 2
The problem is fixed by
cd /home/git mv .bashrc .bashrc_old
This is caused on cpanel servers (i have installed gitosis on a cpanel less server a day before and it worked with out any error, this server have cpanel dns only installed.) as cpanel adds
mesg y
in file /etc/bashrc
It also adds
export EDITOR="pico" export VISUAL="pico"
i replace it with following as i prefer vi
export EDITOR="vi" export VISUAL="vi"
See Git
Leave a Reply