summaryrefslogtreecommitdiff
path: root/builtin-clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-14 01:54:51 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-14 01:54:51 -0700
commit18a536476e68349bacab7ddf84166a907dd0bede (patch)
tree0ebfa3405777e23c57898d7198501504eba8658e /builtin-clone.c
parent9ecb2a7f496413b9a6404e4a19f7edee029819b8 (diff)
parent583371af1f88e9cd48fedbb6bbb147d8091fd591 (diff)
downloadgit-18a536476e68349bacab7ddf84166a907dd0bede.tar.gz
Merge branch 'maint'
* maint: change throughput display units with fast links clone: Supply the right commit hash to post-checkout when -b is used remote-curl: add missing initialization of argv0_path
Diffstat (limited to 'builtin-clone.c')
-rw-r--r--builtin-clone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-clone.c b/builtin-clone.c
index 4992c2597c..5762a6f9d8 100644
--- a/builtin-clone.c
+++ b/builtin-clone.c
@@ -641,7 +641,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
die("unable to write new index file");
err |= run_hook(NULL, "post-checkout", sha1_to_hex(null_sha1),
- sha1_to_hex(remote_head->old_sha1), "1", NULL);
+ sha1_to_hex(our_head_points_at->old_sha1), "1",
+ NULL);
if (!err && option_recursive)
err = run_command_v_opt(argv_submodule, RUN_GIT_CMD);