summaryrefslogtreecommitdiffstats
path: root/subcmds/forall.py
diff options
context:
space:
mode:
authorKevin Degi <kdegi@codeaurora.org>2015-07-27 13:33:43 -0600
committerKevin Degi <kdegi@codeaurora.org>2015-07-27 13:33:43 -0600
commitb1a07b8276c02894ae1901d186d916bde2693f05 (patch)
treee70a0ae484ff12f32fb8bdaa01841ce48dbb2bee /subcmds/forall.py
parentb3d6e67196b4f9d85f3c11453a9502a6e71364d7 (diff)
downloadgit-repo-b1a07b8276c02894ae1901d186d916bde2693f05.tar.gz
InitGitDir: Clean up created directories
If _InitGitDir fails, it leaves any progress it had made on the file system. This can cause subsequent calls to repo sync to behave differently. This is especially evident when _CheckDirReference() fails, since it will not be invoked when sync is retried because both the source and destination directories already exist. To address this, have _InitGitDir() clean up any directories it has created if it catches an exception. Also behave the same way for _InitWorkTree(). Change-Id: Ic16bb3feea649e115b59bd44be294e89e3692aeb
Diffstat (limited to 'subcmds/forall.py')
0 files changed, 0 insertions, 0 deletions