remove trailing LF in die() messages
LF at the end of format strings given to die() is redundant because die already adds one on its own. Signed-off-by: Alexander Potashev <aspotashev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e89e2ed7c2
commit
d75307084d
@ -463,7 +463,7 @@ static void minimize(struct pack_list **min)
|
||||
pll_free(perm_all);
|
||||
}
|
||||
if (perm_ok == NULL)
|
||||
die("Internal error: No complete sets found!\n");
|
||||
die("Internal error: No complete sets found!");
|
||||
|
||||
/* find the permutation with the smallest size */
|
||||
perm = perm_ok;
|
||||
@ -573,14 +573,14 @@ static struct pack_list * add_pack_file(char *filename)
|
||||
struct packed_git *p = packed_git;
|
||||
|
||||
if (strlen(filename) < 40)
|
||||
die("Bad pack filename: %s\n", filename);
|
||||
die("Bad pack filename: %s", filename);
|
||||
|
||||
while (p) {
|
||||
if (strstr(p->pack_name, filename))
|
||||
return add_pack(p);
|
||||
p = p->next;
|
||||
}
|
||||
die("Filename %s not found in packed_git\n", filename);
|
||||
die("Filename %s not found in packed_git", filename);
|
||||
}
|
||||
|
||||
static void load_all(void)
|
||||
@ -636,7 +636,7 @@ int main(int argc, char **argv)
|
||||
add_pack_file(*(argv + i++));
|
||||
|
||||
if (local_packs == NULL)
|
||||
die("Zero packs found!\n");
|
||||
die("Zero packs found!");
|
||||
|
||||
load_all_objects();
|
||||
|
||||
|
Reference in New Issue
Block a user