Skip to content

Commit 3349dcd

Browse files
authored
Merge pull request #1909 from tyrielv/tyrielv/relax-dev-version
Relax IsDevelopmentVersion to accept any major version 0
2 parents f44d708 + e620f45 commit 3349dcd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

GVFS/GVFS.Common/ProcessHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ public static string GetCurrentProcessVersion()
5757

5858
public static bool IsDevelopmentVersion()
5959
{
60+
// Official CI builds use version numbers where major > 0.
61+
// Development builds always start with 0.
6062
string version = ProcessHelper.GetCurrentProcessVersion();
61-
return version.Equals("0.2.173.2") || version.StartsWith("0.2.173.2+");
63+
return version.StartsWith("0.");
6264
}
6365

6466
public static string GetProgramLocation(string programLocaterCommand, string processName)

0 commit comments

Comments
 (0)