File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,16 @@ public void UnsignedMethodsWriteCorrectlyToTheReflog()
173
173
tree , Enumerable . Empty < Commit > ( ) ) ;
174
174
175
175
var direct = repo . Refs . Add ( "refs/heads/direct" , commit . Id ) ;
176
- var directLogEntry = repo . Refs . Log ( direct ) . First ( ) ;
176
+ var directLog = repo . Refs . Log ( direct ) ;
177
+ Assert . Equal ( 1 , directLog . Count ( ) ) ;
178
+ var directLogEntry = directLog . First ( ) ;
177
179
Assert . Equal ( directLogEntry . Commiter , repo . Config . BuildSignature ( directLogEntry . Commiter . When ) ) ;
178
180
Assert . True ( string . IsNullOrEmpty ( directLogEntry . Message ) ) ;
179
181
180
182
var symbolic = repo . Refs . Add ( "refs/heads/symbolic" , direct ) ;
181
- var symbolicLogEntry = repo . Refs . Log ( symbolic ) . First ( ) ;
183
+ var symbolicLog = repo . Refs . Log ( symbolic ) ;
184
+ Assert . Equal ( 1 , symbolicLog . Count ( ) ) ;
185
+ var symbolicLogEntry = symbolicLog . First ( ) ;
182
186
Assert . Equal ( symbolicLogEntry . Commiter , repo . Config . BuildSignature ( symbolicLogEntry . Commiter . When ) ) ;
183
187
Assert . True ( string . IsNullOrEmpty ( symbolicLogEntry . Message ) ) ;
184
188
}
You can’t perform that action at this time.
0 commit comments