diff options
author | Alberto Cortés <alberto@sourced.tech> | 2017-03-01 17:33:15 +0100 |
---|---|---|
committer | Alberto Cortés <alberto@sourced.tech> | 2017-03-01 17:58:23 +0100 |
commit | da704cfac743a91474baf45df226e5ec034146b0 (patch) | |
tree | 3b64c2706cc515c83dcfd66e31fc6a8cf919bb1c /plumbing/object/difftree_test.go | |
parent | 09e4358e03e5eccf5597be9bdcd3ffeab7618fb2 (diff) | |
download | go-git-da704cfac743a91474baf45df226e5ec034146b0.tar.gz |
replace os.FileMode use with filemode.FileMode
Diffstat (limited to 'plumbing/object/difftree_test.go')
-rw-r--r-- | plumbing/object/difftree_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plumbing/object/difftree_test.go b/plumbing/object/difftree_test.go index 594c49d..fa996c2 100644 --- a/plumbing/object/difftree_test.go +++ b/plumbing/object/difftree_test.go @@ -1,10 +1,10 @@ package object import ( - "os" "sort" "srcd.works/go-git.v4/plumbing" + "srcd.works/go-git.v4/plumbing/filemode" "srcd.works/go-git.v4/plumbing/format/packfile" "srcd.works/go-git.v4/plumbing/storer" "srcd.works/go-git.v4/storage/filesystem" @@ -362,11 +362,11 @@ func (s *DiffTreeSuite) TestIssue279(c *C) { // mode to a 100644 or vice versa. from := &treeNoder{ hash: plumbing.NewHash("d08e895238bac36d8220586fdc28c27e1a7a76d3"), - mode: os.FileMode(0100664), + mode: filemode.Regular, } to := &treeNoder{ hash: plumbing.NewHash("d08e895238bac36d8220586fdc28c27e1a7a76d3"), - mode: os.FileMode(0100644), + mode: filemode.Regular, } c.Assert(hashEqual(from, to), Equals, true) c.Assert(hashEqual(to, from), Equals, true) @@ -374,7 +374,7 @@ func (s *DiffTreeSuite) TestIssue279(c *C) { // but should detect if the contents of the file also changed. to = &treeNoder{ hash: plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), - mode: os.FileMode(0100644), + mode: filemode.Regular, } c.Assert(hashEqual(from, to), Equals, false) c.Assert(hashEqual(to, from), Equals, false) |