File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,23 +12,23 @@ import (
12
12
)
13
13
14
14
func TestCommitsCount (t * testing.T ) {
15
- p , err := filepath .Abs ("." )
15
+ p , err := filepath .Abs ("../../ " )
16
16
assert .NoError (t , err )
17
17
commitsCount , err := CommitsCount (p , "a30e5bcaf83a82f5f7d1c89a6f9f7e52036d74af" )
18
18
assert .NoError (t , err )
19
19
assert .Equal (t , int64 (6 ), commitsCount )
20
20
}
21
21
22
22
func TestGetFullCommitID (t * testing.T ) {
23
- p , err := filepath .Abs ("." )
23
+ p , err := filepath .Abs ("../../ " )
24
24
assert .NoError (t , err )
25
25
id , err := GetFullCommitID (p , "a30e5bca" )
26
26
assert .NoError (t , err )
27
27
assert .Equal (t , "a30e5bcaf83a82f5f7d1c89a6f9f7e52036d74af" , id )
28
28
}
29
29
30
30
func TestGetFullCommitIDError (t * testing.T ) {
31
- p , err := filepath .Abs ("." )
31
+ p , err := filepath .Abs ("../../ " )
32
32
assert .NoError (t , err )
33
33
id , err := GetFullCommitID (p , "unknown" )
34
34
assert .Empty (t , id )
You can’t perform that action at this time.
0 commit comments