fix problem happened when git replication is disable