Fixed the bug that the script doesn't work for synchronizing multiple subrepos

It seems if multiple subrepos are sharing the same track branch, the script will no longer synchronizing the changes in the main repo after the initial run.