So the issue occurs when I run gclient sync inside a Dockerfile, and at the end of the gclient sync, it tries to save the git folder of any repo that has been moved from DEPS. It runs into this error when it tries to do
os.rename(os.path.join(e_dir, '.git'), save_dir)
I guess what I wanted to say is, would it be safer to switch to using
shutil.move(os.path.join(e_dir, '.git'), save_dir)
instead?