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
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment