summaryrefslogtreecommitdiffstats
path: root/builtin-clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-03 04:52:18 +0200
committerJunio C Hamano <gitster@pobox.com>2009-09-03 04:52:18 +0200
commit193a5d195ba6b88e0d69f2b81dc4ec878bff8981 (patch)
tree55fc60687b9234a7113804fa259df47dd0dbde2c /builtin-clone.c
parentpush: teach --quiet to suppress "Everything up-to-date" (diff)
parentMerge branch 'maint-1.6.3' into maint (diff)
downloadgit-193a5d195ba6b88e0d69f2b81dc4ec878bff8981.tar.xz
git-193a5d195ba6b88e0d69f2b81dc4ec878bff8981.zip
Merge branch 'maint'
* maint: git-cvsserver: no longer use deprecated 'git-subcommand' commands clone: disconnect transport after fetching
Diffstat (limited to 'builtin-clone.c')
-rw-r--r--builtin-clone.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-clone.c b/builtin-clone.c
index 991a7ae92f..0f231d8af5 100644
--- a/builtin-clone.c
+++ b/builtin-clone.c
@@ -580,8 +580,10 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
option_no_checkout = 1;
}
- if (transport)
+ if (transport) {
transport_unlock_pack(transport);
+ transport_disconnect(transport);
+ }
if (!option_no_checkout) {
struct lock_file *lock_file = xcalloc(1, sizeof(struct lock_file));