summaryrefslogtreecommitdiff
path: root/cache-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-13 14:30:39 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-13 14:30:39 -0800
commit2a54323ce5241992c272c90ebf2be14eaac873eb (patch)
tree614dd645208c1cfe9ebf8b0a1a9ad3fb48459f99 /cache-tree.c
parenta74e60a0f59899c612053b6fe0f0f62652118151 (diff)
parentfe142b3a4577a6692a39e2386ed649664ad8bd20 (diff)
downloadgit-2a54323ce5241992c272c90ebf2be14eaac873eb.tar.gz
Merge branch 'maint'
* maint: Rework cvsexportcommit to handle binary files for all cases. Catch errors when writing an index that contains invalid objects. test-lib.sh: A command dying due to a signal is an unexpected failure. git-update-index(1): fix use of quoting in section title
Diffstat (limited to 'cache-tree.c')
-rw-r--r--cache-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache-tree.c b/cache-tree.c
index a80326289d..9b73c8669a 100644
--- a/cache-tree.c
+++ b/cache-tree.c
@@ -282,6 +282,8 @@ static int update_one(struct cache_tree *it,
baselen + sublen + 1,
missing_ok,
dryrun);
+ if (subcnt < 0)
+ return subcnt;
i += subcnt - 1;
sub->used = 1;
}