summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-19 06:55:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-19 06:55:42 (GMT)
commit709a9e5771ddb32995df6a0622e5d643baa4487a (patch)
tree2f0a8abd8d61d569b02afd7a6a15df5c7a4be10a /sha1_file.c
parent711fc8f660be16ae4c4caaf3caa495d12310b5ad (diff)
parent39ba7d54649b35c943b026b54bff40cfa0153f3e (diff)
downloadgit-709a9e5771ddb32995df6a0622e5d643baa4487a.zip
git-709a9e5771ddb32995df6a0622e5d643baa4487a.tar.gz
git-709a9e5771ddb32995df6a0622e5d643baa4487a.tar.bz2
Merge fixes up to GIT 1.2.2
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 64cf245..1d799f7 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -551,8 +551,10 @@ static void prepare_packed_git_one(char *objdir, int local)
sprintf(path, "%s/pack", objdir);
len = strlen(path);
dir = opendir(path);
- if (!dir)
+ if (!dir) {
+ fprintf(stderr, "unable to open object pack directory: %s: %s\n", path, strerror(errno));
return;
+ }
path[len++] = '/';
while ((de = readdir(dir)) != NULL) {
int namelen = strlen(de->d_name);