Skip to content

Commit d44861d

Browse files
committed
Problem: building Omnigres extensions
Solution: ensure we handle nil version_git_tag
1 parent 03e0c7c commit d44861d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pgpm/package/git_hub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def sources
1717

1818
def source_url_directory_name
1919
# GitHub strips leading `v` from version tags
20-
commit = version_git_tag.gsub(/^v/, "") || version_git_commit
20+
commit = version_git_tag&.gsub(/^v/, "") || version_git_commit
2121
"#{self.class.github_config.name.split("/").last}-#{commit}"
2222
end
2323
end

0 commit comments

Comments
 (0)