Making git-clone clean up when it fails
- From
Carl Worth <cworth@cworth.org>
- Date
- Feb 17, 2006, 21:33 UTC
- Message-ID
- <11402120031687-git-send-email-cworth@cworth.org>
So instead of just making noise, I'll start actually contributing to git. The first patch here is designed to fix the annoying bug that when git-clone fails it still leaves the created directory around, (so that a subsequent git-clone will be guaranteed to fail since the directory already exists).
The second and third patches provide a new test case for the new behavior. I had to guess at the number for the new test, since the distinction of the various numbers in t/README was too vague for me to know where a git-clone test should go. Feel free to adjust that as you might see fit.
-Carl
-- cworth@redhat.com