Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 703782163ddb653789c304e396eadb31f541864f 1 parent f9f6809
@pieter authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  PBChangedFile.m
View
1  PBChangedFile.m
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.