aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/difftree_test.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-03-03 16:09:36 +0100
committerGitHub <noreply@github.com>2017-03-03 16:09:36 +0100
commit59335b69777f2ef311e63b7d3464459a3ac51d48 (patch)
treed0b64c76d599bb1f58fc358ae5879bef262cea0f /plumbing/object/difftree_test.go
parentd105e15d91e7553d9d40d6e9fffe0a5008cf8afe (diff)
parentda704cfac743a91474baf45df226e5ec034146b0 (diff)
downloadgo-git-59335b69777f2ef311e63b7d3464459a3ac51d48.tar.gz
Merge pull request #297 from alcortesm/issue274
issue #274: new filemode package
Diffstat (limited to 'plumbing/object/difftree_test.go')
-rw-r--r--plumbing/object/difftree_test.go8
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)