Permalink
Browse files

PBChangedFile: Add assert to make sure we're not doing something stupid

  • Loading branch information...
1 parent f9f6809 commit 703782163ddb653789c304e396eadb31f541864f @pieter committed Aug 27, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 PBChangedFile.m
View
@@ -24,6 +24,7 @@ - (id) initWithPath:(NSString *)p
- (NSString *)indexInfo
{
+ NSAssert(status == NEW || self.commitBlobSHA, @"File is not new, but doesn't have an index entry!");
if (!self.commitBlobSHA)
return [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t%@\0", self.path];
else

0 comments on commit 7037821

Please sign in to comment.