summaryrefslogtreecommitdiff
path: root/builtin/archive.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-01-06 14:45:26 +0100
committerJunio C Hamano <gitster@pobox.com>2014-01-06 09:34:22 -0800
commitf3565c0ca535d3becdcd2266002385709ddfa66c (patch)
tree2d38070811653fc22e7cdc25974ff2d09b9edae8 /builtin/archive.c
parent0be0521b23f46dac586e1b464fafe8b97027b645 (diff)
downloadgit-f3565c0ca535d3becdcd2266002385709ddfa66c.tar.gz
cmd_init_db(): when creating directories, handle errors conservatively
safe_create_leading_directories_const() returns a non-zero value on error. The old code at this calling site recognized a couple of particular error values, and treated all other return values as success. Instead, be more conservative: recognize the errors we are interested in, but treat any other nonzero values as failures. This is more robust in case somebody adds another possible return value without telling us. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/archive.c')
0 files changed, 0 insertions, 0 deletions