Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
869d65ae
Verified
Commit
869d65ae
authored
Mar 02, 2017
by
Jan Alexander Steffens (heftig)
Browse files
gitpkg: Only display diff if not empty
parent
27dba431
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/archbuild/files/gitpkg
View file @
869d65ae
...
...
@@ -372,8 +372,15 @@ pbw.write
system
"updpkgsums"
system
"makepkg"
,
"--verifysource"
header
"Diff"
IO
.
popen
([
'diff'
,
'-u'
,
'-'
,
pbw
.
filename
],
"w"
)
{
|
f
|
f
.
write
pbr
.
contents
}
diff
=
IO
.
popen
([
'diff'
,
'-u'
,
'-'
,
pbw
.
filename
],
"r+"
)
do
|
f
|
f
.
write
pbr
.
contents
f
.
close_write
f
.
read
end
unless
diff
.
empty?
header
"Diff"
puts
diff
,
""
end
header
"Submodules"
gitmodules
=
repo
.
read_file
(
commit
,
".gitmodules"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment