3 current="`git config --get --path remote.current.url`"
4 origin="`git config --get --path remote.origin.url`"
6 if [ -n "$origin" ]; then
7 if [ -n "$current" ]; then
8 echo "Config error (both origin and current)" >&2
14 elif [ -z "$current" ]; then
15 echo "Wrong directory error (neither origin nor current)" >&2
19 git pull --ff-only current master &&
21 web="`git config --get --path remote.web.url`" &&
22 if [ -n "$web" ]; then
26 cd "$current" && exec git pull origin