fixed bug with throwing exception in getting git repository