File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ package tests
2
2
3
3
import (
4
4
"fmt"
5
- git "github.com/libgit2/git2go/v31"
6
- git2 "github.com/neel1996/gitconvex-server/git"
7
- "github.com/neel1996/gitconvex-server/graph/model"
8
5
"io/ioutil"
9
6
"os"
7
+ "path"
10
8
"strings"
11
9
"testing"
10
+
11
+ git "github.com/libgit2/git2go/v31"
12
+ git2 "github.com/neel1996/gitconvex-server/git"
13
+ "github.com/neel1996/gitconvex-server/graph/model"
12
14
)
13
15
14
16
func TestChangedFiles (t * testing.T ) {
@@ -20,6 +22,9 @@ func TestChangedFiles(t *testing.T) {
20
22
if currentEnv == "ci" {
21
23
repoPath = "/home/runner/work/gitconvex-server/starfleet"
22
24
r , _ = git .OpenRepository (repoPath )
25
+ } else {
26
+ cwd , _ := os .Getwd ()
27
+ r , _ = git .OpenRepository (path .Join (cwd , ".." ))
23
28
}
24
29
25
30
untrackedResult := "untracked.txt"
You can’t perform that action at this time.
0 commit comments