Skip to content

Commit 7037821

Browse files
committed
PBChangedFile: Add assert to make sure we're not doing something stupid
1 parent f9f6809 commit 7037821

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PBChangedFile.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ - (id) initWithPath:(NSString *)p
2424

2525
- (NSString *)indexInfo
2626
{
27+
NSAssert(status == NEW || self.commitBlobSHA, @"File is not new, but doesn't have an index entry!");
2728
if (!self.commitBlobSHA)
2829
return [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t%@\0", self.path];
2930
else

0 commit comments

Comments
 (0)