Skip to content

Commit

Permalink
Merge pull request #1 from GitTools/master
Browse files Browse the repository at this point in the history
use new varable name for current branch in gitlab ci
  • Loading branch information
Bankers88 authored Aug 5, 2019
2 parents cf780a0 + 11ee72a commit f434377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GitVersionCore/BuildServers/GitLabCi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GitVersion
namespace GitVersion
{
using System;
using System.IO;
Expand Down Expand Up @@ -37,7 +37,7 @@ public override string[] GenerateSetParameterMessage(string name, string value)

public override string GetCurrentBranch(bool usingDynamicRepos)
{
return Environment.GetEnvironmentVariable("CI_BUILD_REF_NAME");
return Environment.GetEnvironmentVariable("CI_COMMIT_REF_NAME");
}

public override bool PreventFetch()
Expand All @@ -57,4 +57,4 @@ void WriteVariablesFile(VersionVariables variables)
File.WriteAllLines(_file, BuildOutputFormatter.GenerateBuildLogOutput(this, variables));
}
}
}
}

0 comments on commit f434377

Please sign in to comment.