summaryrefslogtreecommitdiff
path: root/builtin-clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-02 19:52:18 -0700
committerJunio C Hamano <gitster@pobox.com>2009-09-02 19:52:18 -0700
commit193a5d195ba6b88e0d69f2b81dc4ec878bff8981 (patch)
tree55fc60687b9234a7113804fa259df47dd0dbde2c /builtin-clone.c
parent2e5ed5f21b5b978268d7e4823fe777fdff20f544 (diff)
parentdaf85d97f8ae4ba462e55c79b1520342028f24d7 (diff)
downloadgit-193a5d195ba6b88e0d69f2b81dc4ec878bff8981.tar.gz
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));