Added try except block, so even no GUI started. git pull will also work. Some minor code refine.
Added try except block, so even no GUI started. git pull will also work.
Some minor code refine.

weijia/django-git,weijia/django-git