Fix branch change not reflected if projectbase != dotGit
Branch change isn't reflected in the UI if project base dir is different from dot git path.
This change is separated into 2 commits, the first one needs to be ported back to 21.04.
Signed-off-by: Waqar Ahmed waqar.17a@gmail.com