Commit from Linux. Fixing promote command bug.