Browse Source

Make update-cache be explicit about failed open() when doing

add_file_to_cache().
maint
Petr Baudis 20 years ago committed by Petr Baudis
parent
commit
071c41a047
  1. 2
      update-cache.c

2
update-cache.c

@ -73,7 +73,7 @@ static int add_file_to_cache(char *path) @@ -73,7 +73,7 @@ static int add_file_to_cache(char *path)
if (allow_remove)
return remove_file_from_cache(path);
}
return -1;
return error("open(\"%s\"): %s", path, strerror(errno));
}
namelen = strlen(path);
size = cache_entry_size(namelen);

Loading…
Cancel
Save