Git stdin is not a tty
When i push to get respo, i get error
1 |
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
1 2 3 |
if [ $(expr index "$-" i) -eq 0 ]; then return fi |
Modified .bashrc on my server
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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
1 2 |
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
1 |
mesg y |
in file /etc/bashrc
It also adds
1 2 |
export EDITOR="pico" export VISUAL="pico" |
i replace it with following as i prefer vi
1 2 |
export EDITOR="vi" export VISUAL="vi" |
See Git