@@ -21,7 +21,7 @@ public void SmugdeIsNotCalledForFileWhichDoesNotMatchAnAttributeEntry()
21
21
22
22
string repoPath = InitNewRepository ( ) ;
23
23
string fileName = Guid . NewGuid ( ) + ".rot13" ;
24
- string configPath = CreateConfigurationWithDummyUser ( Constants . Signature ) ;
24
+ string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
25
25
var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
26
26
using ( var repo = new Repository ( repoPath , repositoryOptions ) )
27
27
{
@@ -61,7 +61,7 @@ public void CorrectlyEncodesAndDecodesInput()
61
61
62
62
string repoPath = InitNewRepository ( ) ;
63
63
string fileName = Guid . NewGuid ( ) + ".rot13" ;
64
- string configPath = CreateConfigurationWithDummyUser ( Constants . Signature ) ;
64
+ string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
65
65
var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
66
66
using ( var repo = new Repository ( repoPath , repositoryOptions ) )
67
67
{
@@ -106,7 +106,7 @@ public void WhenStagedFileDoesNotMatchPathSpecFileIsNotFiltered(string pathSpec,
106
106
string repoPath = InitNewRepository ( ) ;
107
107
string fileName = Guid . NewGuid ( ) + fileExtension ;
108
108
109
- string configPath = CreateConfigurationWithDummyUser ( Constants . Signature ) ;
109
+ string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
110
110
var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
111
111
using ( var repo = new Repository ( repoPath , repositoryOptions ) )
112
112
{
@@ -141,7 +141,7 @@ public void CleanIsCalledIfAttributeEntryMatches(string filterAttribute, string
141
141
string repoPath = InitNewRepository ( ) ;
142
142
string fileName = Guid . NewGuid ( ) + ".txt" ;
143
143
144
- string configPath = CreateConfigurationWithDummyUser ( Constants . Signature ) ;
144
+ string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
145
145
var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
146
146
using ( var repo = new Repository ( repoPath , repositoryOptions ) )
147
147
{
@@ -172,7 +172,7 @@ public void SmudgeIsCalledIfAttributeEntryMatches(string filterAttribute, string
172
172
string repoPath = InitNewRepository ( ) ;
173
173
string fileName = Guid . NewGuid ( ) + ".txt" ;
174
174
175
- string configPath = CreateConfigurationWithDummyUser ( Constants . Signature ) ;
175
+ string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
176
176
var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
177
177
using ( var repo = new Repository ( repoPath , repositoryOptions ) )
178
178
{
@@ -203,15 +203,15 @@ private static void DeleteFile(Repository repo, string fileName)
203
203
{
204
204
File . Delete ( Path . Combine ( repo . Info . WorkingDirectory , fileName ) ) ;
205
205
repo . Stage ( fileName ) ;
206
- repo . Commit ( "remove file" ) ;
206
+ repo . Commit ( "remove file" , Constants . Signature , Constants . Signature ) ;
207
207
}
208
208
209
209
private static Blob CommitOnBranchAndReturnDatabaseBlob ( Repository repo , string fileName , string input )
210
210
{
211
211
Touch ( repo . Info . WorkingDirectory , fileName , input ) ;
212
212
repo . Stage ( fileName ) ;
213
213
214
- var commit = repo . Commit ( "new file" ) ;
214
+ var commit = repo . Commit ( "new file" , Constants . Signature , Constants . Signature ) ;
215
215
216
216
var blob = ( Blob ) commit . Tree [ fileName ] . Target ;
217
217
return blob ;
0 commit comments