Code

Merge branch 'jc/maint-1.6.0-blank-at-eof' (early part) into jc/maint-blank-at-eof
[git.git] / builtin-clone.c
index 32dea74d78381ca1dffdac7f88e45a89a9825104..e51978a157d1ed3873ff04ac0b64dcf90a2a8dd7 100644 (file)
@@ -574,8 +574,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));