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