Skip to content

Commit

Permalink
fixed a bug in dirtyTag which may leave whitespaces in changedPath
Browse files Browse the repository at this point in the history
  • Loading branch information
neoseele committed Jun 21, 2018
1 parent 26fb845 commit b8cfc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/build/tag/git_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b8cfc37

Please sign in to comment.