Git - fix bug with empty working directory in ChangeSelectionDialog

and also remove unnedded command.

Change-Id: I6c20f2061fc3628693d80ad01fe23c1a835ca127
Reviewed-by: Orgad Shaneh <orgads@gmail.com>