@@ -133,14 +133,6 @@ function tarball_git_tree_hash(; tarball_path::AbstractString, algorithm::Abstra
133133 return open (io -> Tar. tree_hash (io; algorithm), ` $(exe7z ()) x $tarball_path -so` )
134134end
135135
136- function tarball_git_tree_sha1 (tarball_path:: AbstractString )
137- return tarball_git_tree_hash (; tarball_path, algorithm = " git-sha1" )
138- end
139-
140- function tarball_git_tree_sha256 (tarball_path:: AbstractString )
141- return tarball_git_tree_hash (; tarball_path, algorithm = " git-sha256" )
142- end
143-
144136# Get list of tags from the Julia repo
145137function get_tags ()
146138 @info (" Probing for tag list..." )
@@ -208,12 +200,12 @@ function main(out_path)
208200 tarball_git_tree_hashes = Dict {String, String} ()
209201 tree_hash_path_sha1 = hit_file_cache (" $(filename) .git-tree-sha1" ) do tree_hash_path
210202 open (tree_hash_path, " w" ) do hash_io
211- write (hash_io, tarball_git_tree_sha1 ( filepath))
203+ write (hash_io, tarball_git_tree_hash (; tarball_path = filepath, algorithm = " git-sha1 " ))
212204 end
213205 end
214206 tree_hash_path_sha256 = hit_file_cache (" $(filename) .git-tree-sha256" ) do tree_hash_path
215207 open (tree_hash_path, " w" ) do hash_io
216- write (hash_io, tarball_git_tree_sha256 ( filepath))
208+ write (hash_io, tarball_git_tree_hash (; tarball_path = filepath, algorithm = " git-sha256 " ))
217209 end
218210 end
219211 tarball_git_tree_hashes[" git-tree-sha1" ] = String (read (tree_hash_path_sha1))
0 commit comments