Skip to content
Snippets Groups Projects
Verified Commit e6446ea2 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

gitpkg: Only display .gitmodules if present

parent 869d65ae
No related branches found
No related tags found
No related merge requests found
......@@ -382,12 +382,10 @@ unless diff.empty?
puts diff, ""
end
header "Submodules"
gitmodules = repo.read_file(commit, ".gitmodules")
if gitmodules
puts gitmodules
else
puts "None"
header "Submodules"
puts gitmodules, ""
end
Dir.unlink "src"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment