From b8cfc379fcc4c18f7323bd015991f147f2f87a28 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 21 Jun 2018 16:53:43 +1000 Subject: [PATCH] fixed a bug in dirtyTag which may leave whitespaces in changedPath --- pkg/skaffold/build/tag/git_commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/skaffold/build/tag/git_commit.go b/pkg/skaffold/build/tag/git_commit.go index dd577bc610b..5a0553e1e36 100644 --- a/pkg/skaffold/build/tag/git_commit.go +++ b/pkg/skaffold/build/tag/git_commit.go @@ -169,7 +169,7 @@ func dirtyTag(root string, opts *Options, currentTag string, lines []string) (st continue } - changedPath := statusLine[2:] + changedPath := strings.Trim(statusLine[2:], " ") f, err := os.Open(filepath.Join(root, changedPath)) if err != nil { return "", errors.Wrap(err, "reading diff")