Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
a1b5b692
Commit
a1b5b692
authored
Apr 28, 2018
by
Herbert Mühlburger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor to be more precise
parent
dcdeefbd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
save.go
pkg/chartutil/save.go
+1
-3
No files found.
pkg/chartutil/save.go
View file @
a1b5b692
...
@@ -24,7 +24,6 @@ import (
...
@@ -24,7 +24,6 @@ import (
"io/ioutil"
"io/ioutil"
"os"
"os"
"path/filepath"
"path/filepath"
"strings"
"github.com/ghodss/yaml"
"github.com/ghodss/yaml"
...
@@ -205,9 +204,8 @@ func writeTarContents(out *tar.Writer, c *chart.Chart, prefix string) error {
...
@@ -205,9 +204,8 @@ func writeTarContents(out *tar.Writer, c *chart.Chart, prefix string) error {
// writeToTar writes a single file to a tar archive.
// writeToTar writes a single file to a tar archive.
func
writeToTar
(
out
*
tar
.
Writer
,
name
string
,
body
[]
byte
)
error
{
func
writeToTar
(
out
*
tar
.
Writer
,
name
string
,
body
[]
byte
)
error
{
// TODO: Do we need to create dummy parent directory names if none exist?
// TODO: Do we need to create dummy parent directory names if none exist?
name
=
strings
.
Replace
(
name
,
"
\\
"
,
"/"
,
-
1
)
h
:=
&
tar
.
Header
{
h
:=
&
tar
.
Header
{
Name
:
name
,
Name
:
filepath
.
ToSlash
(
name
)
,
Mode
:
0755
,
Mode
:
0755
,
Size
:
int64
(
len
(
body
)),
Size
:
int64
(
len
(
body
)),
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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