Skip to content

Commit 4b9f3fc

Browse files
author
Nelson Vides
committed
Parameter names given on the .Commit() commands
1 parent 4e5cd9d commit 4b9f3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rubberduck.SourceControl/GitProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public override IRepository InitVBAProject(string directory)
193193
//The default behavior of LibGit2Sharp.Repo.Commit is to throw an exception if no signature is found,
194194
// but BuildSignature() does not throw if a signature is not found, it returns "unknown" instead.
195195
// so we pass a signature that won't throw along to the commit.
196-
repo.Commit("Initial Commit", GetSignature(repo), GetSignature(repo));
196+
repo.Commit("Initial Commit", author: GetSignature(repo), committer: GetSignature(repo));
197197
}
198198
catch(LibGit2SharpException ex)
199199
{
@@ -291,7 +291,7 @@ public override void Commit(string message)
291291
//The default behavior of LibGit2Sharp.Repo.Commit is to throw an exception if no signature is found,
292292
// but BuildSignature() does not throw if a signature is not found, it returns "unknown" instead.
293293
// so we pass a signature that won't throw along to the commit.
294-
_repo.Commit(message, GetSignature(), GetSignature());
294+
_repo.Commit(message, author: GetSignature(), committer: GetSignature());
295295
}
296296
catch (LibGit2SharpException ex)
297297
{

0 commit comments

Comments
 (0)