X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-update-index.c;h=1fde893cfa9f6318ae1e9958b2f61159b01c7c6a;hb=a162e78df082d4f885bda2e51067d9788a7f65e4;hp=daca0f775e4b49f2576a7c444895146d05b7022c;hpb=8e4f767ba77051aedaac7ef6639ee990778866c7;p=git.git diff --git a/builtin-update-index.c b/builtin-update-index.c index daca0f775..1fde893cf 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -195,7 +195,7 @@ static int process_path(const char *path) 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); /* @@ -486,7 +486,7 @@ static int unresolve_one(const char *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);