diff --git a/builtin-update-index.c b/builtin-update-index.c
index daca0f775e4b49f2576a7c444895146d05b7022c..1fde893cfa9f6318ae1e9958b2f61159b01c7c6a 100644 (file)
--- a/builtin-update-index.c
+++ b/builtin-update-index.c
struct stat st;
len = strlen(path);
- if (has_symlink_leading_path(len, path))
+ if (has_symlink_leading_path(path, len))
return error("'%s' is beyond a symbolic link", path);
/*
static void read_head_pointers(void)
{
if (read_ref("HEAD", head_sha1))
- die("No HEAD -- no initial commit yet?\n");
+ die("No HEAD -- no initial commit yet?");
if (read_ref("MERGE_HEAD", merge_head_sha1)) {
fprintf(stderr, "Not in the middle of a merge.\n");
exit(0);