Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #721 from neoseele/master
fixed a bug in dirtyTag which may leave extra whitespaces in changedPath
  • Loading branch information
dgageot committed Jun 22, 2018
2 parents 2d0ee1e + b8cfc37 commit 3d07bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/build/tag/git_commit.go
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 3d07bf2

Please sign in to comment.