Skip to content

Commit

Permalink
Merge pull request #16713 from github/criemen/csharp-version-fallback
Browse files Browse the repository at this point in the history
C#: Add fallback for branch detection.
  • Loading branch information
criemen authored Jun 10, 2024
2 parents 000a81f + 027c7d0 commit 7ecf1f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csharp/scripts/gen-git-assembly-info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def options():
gitfiles[file.name] = file

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

output_file = pathlib.Path(opts.output)
Expand Down

0 comments on commit 7ecf1f9

Please sign in to comment.