private static string ExtractCommitHashFrom(string product) { // TODO: Maybe should we switch to a regEx capture ? string[] parts = product.Split(new[] {'['}); return parts[1].TrimEnd(']'); }