diff options
author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2014-03-12 10:48:15 -0700 |
---|---|---|
committer | Mitchel Humpherys <mitchelh@codeaurora.org> | 2014-03-12 15:11:27 -0700 |
commit | eb5acc9ae9148b21afa82b63daec7753b284c03c (patch) | |
tree | 74c1931b7930a45ae92f0f4791af29778d0d0af6 /manifest_xml.py | |
parent | 53e902a19b0b80e07ac55966d13c5c84c5b0e8ce (diff) | |
download | git-repo-eb5acc9ae9148b21afa82b63daec7753b284c03c.tar.gz |
Don't try to remove .repo if it doesn't exist
Part of the cleanup path for _Init is removing the .repo
directory. However, _Init can fail before creating the .repo directory,
so trying to remove it raises another exception:
fatal: invalid branch name 'refs/changes/53/55053/4'
Traceback (most recent call last):
File "/home/mitchelh/bin/repo", line 775, in <module>
main(sys.argv[1:])
File "/home/mitchelh/bin/repo", line 749, in main
os.rmdir(repodir)
OSError: [Errno 2] No such file or directory: '.repo'
Fix this by only removing .repo if it actually exists.
Change-Id: Ia251d29e9c73e013eb296501d11c36263457e235
Diffstat (limited to 'manifest_xml.py')
0 files changed, 0 insertions, 0 deletions