restore components directory to repo