Skip to content

Commit

Permalink
Don't try to calculate git hash for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed Jul 31, 2023
1 parent 201a410 commit fe51907
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/create_binaries/add_metadata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function add_metadata(project_dir, license_file, output_dir, git_repo)
version = wflow_entry["version"]
repo = GitRepo(git_repo)
branch = LibGit2.head(repo)
commit = LibGit2.peel(LibGit2.GitCommit, branch)
# commit = LibGit2.peel(LibGit2.GitCommit, branch)
short_name = LibGit2.shortname(branch)
short_commit = string(LibGit2.GitShortHash(LibGit2.GitHash(commit), 10))
# short_commit = string(LibGit2.GitShortHash(LibGit2.GitHash(commit), 10))
url = "https://github.com/Deltares/Wflow.jl/tree"
version_info = """
Expand All @@ -58,7 +58,6 @@ function add_metadata(project_dir, license_file, output_dir, git_repo)
```toml
version = "$version"
git-tree-sha1 = "$tree"
commit = "$url/$short_commit"
branch = "$url/$short_name"
julia_version = "$julia_version"
```"""
Expand Down

0 comments on commit fe51907

Please sign in to comment.