Skip to content

Commit

Permalink
Fix capitalization in nbgv source code
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Sep 23, 2021
1 parent c13d166 commit 496c359
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/nbgv/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,16 @@ private static int OnInstallCommand(string path, string version, IReadOnlyList<s
return (int)ExitCodes.OK;
}

private static int OnGetVersionCommand(string project, IReadOnlyList<string> metadata, string format, string variable, string commitIsh)
private static int OnGetVersionCommand(string project, IReadOnlyList<string> metadata, string format, string variable, string commitish)
{
if (string.IsNullOrEmpty(format))
{
format = DefaultOutputFormat;
}

if (string.IsNullOrEmpty(commitIsh))
if (string.IsNullOrEmpty(commitish))
{
commitIsh = DefaultRef;
commitish = DefaultRef;
}

string searchPath = GetSpecifiedOrCurrentDirectoryPath(project);
Expand All @@ -368,9 +368,9 @@ private static int OnGetVersionCommand(string project, IReadOnlyList<string> met
return (int)ExitCodes.NoGitRepo;
}

if (!context.TrySelectCommit(commitIsh))
if (!context.TrySelectCommit(commitish))
{
Console.Error.WriteLine("rev-parse produced no commit for {0}", commitIsh);
Console.Error.WriteLine("rev-parse produced no commit for {0}", commitish);
return (int)ExitCodes.BadGitRef;
}

Expand Down

0 comments on commit 496c359

Please sign in to comment.