Skip to content

Commit de635bd

Browse files
committed
Fixes #1 issue when running Git.Unite with path argument of . to process the current directory
1 parent 84ce1a4 commit de635bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LibGitUnite/GitUnite.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ public static class GitUnite
1212
/// <summary>
1313
/// Unite the git repository index file paths with the same case the OS is using
1414
/// </summary>
15-
/// <param name = "path">
15+
/// <param name = "gitPath">
1616
/// The path to the git repository to open, can be either the path to the git directory (for non-bare repositories this
1717
/// would be the ".git" folder inside the working directory) or the path to the working directory.
1818
/// </param>
1919
/// <param name="dryrun">dry run without making changes</param>
20-
public static void Process(string path, bool dryrun)
20+
public static void Process(string gitPath, bool dryrun)
2121
{
2222
// Build a list of directory names as seen by the host operating system
2323
List<string> folders;
24+
var path = new DirectoryInfo(gitPath).FullName;
2425

2526
try
2627
{

0 commit comments

Comments
 (0)