diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-10 13:47:30 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-10 13:47:30 -0800 |
commit | 63d1cf6526a51d72f5c14cf9f8c72d3cc37762bb (patch) | |
tree | da5660e66f54263a4230352e620e896551c41cf2 /builtin/clone.c | |
parent | d912b0e44f82dc430a4aac8566a8217b60629638 (diff) | |
parent | 9be1980bb966cb1bc187b62803e6b76087fd5aac (diff) | |
download | git-63d1cf6526a51d72f5c14cf9f8c72d3cc37762bb.tar.gz |
Merge branch 'jl/interrupt-clone-remove-separate-git-dir'
When "git clone --separate-git-dir" is interrupted, we failed to
remove the real location we created the repository.
* jl/interrupt-clone-remove-separate-git-dir:
clone: support atomic operation with --separate-git-dir
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index ec2f75b4f3..8d23a62e8a 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -771,8 +771,10 @@ int cmd_clone(int argc, const char **argv, const char *prefix) die(_("could not create leading directories of '%s'"), git_dir); set_git_dir_init(git_dir, real_git_dir, 0); - if (real_git_dir) + if (real_git_dir) { git_dir = real_git_dir; + junk_git_dir = real_git_dir; + } if (0 <= option_verbosity) { if (option_bare) |