commit | 854039b6ba9c707af07f9966b39150ce23150920 | [log] [tgz] |
---|---|---|
author | Victor Vieux <victor.vieux@dotcloud.com> | Mon Jun 03 17:25:51 2013 +0000 |
committer | Victor Vieux <victor.vieux@dotcloud.com> | Mon Jun 03 17:25:51 2013 +0000 |
tree | a3b5c0c4f105d5c26c539b79489d5d46eb0fb218 | |
parent | 070923b14f734fe14bec4f0a4cd406f0101671d3 [diff] |
remove TrimLeft as it's go1.1
diff --git a/changes.go b/changes.go index e50b887..dc1b015 100644 --- a/changes.go +++ b/changes.go
@@ -65,7 +65,7 @@ file := filepath.Base(path) // If there is a whiteout, then the file was removed if strings.HasPrefix(file, ".wh.") { - originalFile := strings.TrimPrefix(file, ".wh.") + originalFile := file[len(".wh."):] change.Path = filepath.Join(filepath.Dir(path), originalFile) change.Kind = ChangeDelete } else {