@@ -21,10 +21,9 @@ public void SmugdeIsNotCalledForFileWhichDoesNotMatchAnAttributeEntry()
2121
2222 string repoPath = InitNewRepository ( ) ;
2323 string fileName = Guid . NewGuid ( ) + ".rot13" ;
24- string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
25- var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
26- using ( var repo = new Repository ( repoPath , repositoryOptions ) )
24+ using ( var repo = new Repository ( repoPath ) )
2725 {
26+ CreateConfigurationWithDummyUser ( repo , Constants . Identity ) ;
2827 CreateAttributesFile ( repo , "*.rot13 filter=rot13" ) ;
2928
3029 var blob = CommitOnBranchAndReturnDatabaseBlob ( repo , fileName , decodedInput ) ;
@@ -61,10 +60,9 @@ public void CorrectlyEncodesAndDecodesInput()
6160
6261 string repoPath = InitNewRepository ( ) ;
6362 string fileName = Guid . NewGuid ( ) + ".rot13" ;
64- string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
65- var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
66- using ( var repo = new Repository ( repoPath , repositoryOptions ) )
63+ using ( var repo = new Repository ( repoPath ) )
6764 {
65+ CreateConfigurationWithDummyUser ( repo , Constants . Identity ) ;
6866 CreateAttributesFile ( repo , "*.rot13 filter=rot13" ) ;
6967
7068 var blob = CommitOnBranchAndReturnDatabaseBlob ( repo , fileName , decodedInput ) ;
@@ -106,10 +104,9 @@ public void WhenStagedFileDoesNotMatchPathSpecFileIsNotFiltered(string pathSpec,
106104 string repoPath = InitNewRepository ( ) ;
107105 string fileName = Guid . NewGuid ( ) + fileExtension ;
108106
109- string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
110- var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
111- using ( var repo = new Repository ( repoPath , repositoryOptions ) )
107+ using ( var repo = new Repository ( repoPath ) )
112108 {
109+ CreateConfigurationWithDummyUser ( repo , Constants . Identity ) ;
113110 CreateAttributesFile ( repo , attributeFileEntry ) ;
114111
115112 CommitOnBranchAndReturnDatabaseBlob ( repo , fileName , decodedInput ) ;
@@ -141,10 +138,9 @@ public void CleanIsCalledIfAttributeEntryMatches(string filterAttribute, string
141138 string repoPath = InitNewRepository ( ) ;
142139 string fileName = Guid . NewGuid ( ) + ".txt" ;
143140
144- string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
145- var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
146- using ( var repo = new Repository ( repoPath , repositoryOptions ) )
141+ using ( var repo = new Repository ( repoPath ) )
147142 {
143+ CreateConfigurationWithDummyUser ( repo , Constants . Identity ) ;
148144 CreateAttributesFile ( repo , attributeEntry ) ;
149145
150146 CommitOnBranchAndReturnDatabaseBlob ( repo , fileName , decodedInput ) ;
@@ -172,10 +168,9 @@ public void SmudgeIsCalledIfAttributeEntryMatches(string filterAttribute, string
172168 string repoPath = InitNewRepository ( ) ;
173169 string fileName = Guid . NewGuid ( ) + ".txt" ;
174170
175- string configPath = CreateConfigurationWithDummyUser ( Constants . Identity ) ;
176- var repositoryOptions = new RepositoryOptions { GlobalConfigurationLocation = configPath } ;
177- using ( var repo = new Repository ( repoPath , repositoryOptions ) )
171+ using ( var repo = new Repository ( repoPath ) )
178172 {
173+ CreateConfigurationWithDummyUser ( repo , Constants . Identity ) ;
179174 CreateAttributesFile ( repo , attributeEntry ) ;
180175
181176 CommitOnBranchAndReturnDatabaseBlob ( repo , fileName , decodedInput ) ;
0 commit comments