Skip to content

Commit 7ecf1f9

Browse files
authored
Merge pull request github#16713 from github/criemen/csharp-version-fallback
C#: Add fallback for branch detection.
2 parents 000a81f + 027c7d0 commit 7ecf1f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

csharp/scripts/gen-git-assembly-info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def options():
2323
gitfiles[file.name] = file
2424

2525
version_string = gitfiles["git-ql-describe-all.log"].read_text().strip()
26+
if version_string == "no-git":
27+
version_string = gitfiles["git-describe-all.log"].read_text().strip()
2628
version_string += f" ({gitfiles['git-ql-rev-parse.log'].read_text().strip()})"
2729

2830
output_file = pathlib.Path(opts.output)

0 commit comments

Comments
 (0)