NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ledermann
Oct 10, 2010Aspirant
gitscm: Can't connect to git repo
Hi! I have installed the gitscm add-on and can't get it to work, instead the "git-upload-pack: command not found" message appears. What I have done: - Installed gitscm-addon via FrontView and ...
parcae
Jan 10, 2011Aspirant
I had the same problems.
I noticed I had two different PATH depending whether I was logged in to the ReadyNAS or wether I issued remote ssh command
If I looked at the PATH while logged into my ReadyNAS I saw this:
readynas:~# echo $PATH
/opt/rfw/bin:/opt/rfw/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
if I did the following command from my local machine, I get a different PATH:
local: ssh root@readynas echo \$PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
notice that when I ran the ssh remote command to show the $PATH, there was no /opt/rfw/bin
so on my ReadyNAS, I modified the .bashrc file to include /opt/rfw/bin:
readynas:~# cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
PATH=:$PATH:/opt/rfw/bin
export PATH
export PS1='\h:\w\$ '
umask 022
By doing this, I was able to get my git push and pulls to work correctly.
I noticed I had two different PATH depending whether I was logged in to the ReadyNAS or wether I issued remote ssh command
If I looked at the PATH while logged into my ReadyNAS I saw this:
readynas:~# echo $PATH
/opt/rfw/bin:/opt/rfw/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
if I did the following command from my local machine, I get a different PATH:
local: ssh root@readynas echo \$PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
notice that when I ran the ssh remote command to show the $PATH, there was no /opt/rfw/bin
so on my ReadyNAS, I modified the .bashrc file to include /opt/rfw/bin:
readynas:~# cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
PATH=:$PATH:/opt/rfw/bin
export PATH
export PS1='\h:\w\$ '
umask 022
By doing this, I was able to get my git push and pulls to work correctly.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!