Skip to content

Commit 1bff1ed

Browse files
committed
- test src-d#1
1 parent c5d7ead commit 1bff1ed

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

worktree_status.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ package git
33
import (
44
"bytes"
55
"errors"
6-
"io"
7-
"os"
8-
"path"
9-
"path/filepath"
10-
116
"gopkg.in/src-d/go-billy.v4/util"
127
"gopkg.in/src-d/go-git.v4/plumbing"
138
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
@@ -19,6 +14,11 @@ import (
1914
"gopkg.in/src-d/go-git.v4/utils/merkletrie/filesystem"
2015
mindex "gopkg.in/src-d/go-git.v4/utils/merkletrie/index"
2116
"gopkg.in/src-d/go-git.v4/utils/merkletrie/noder"
17+
"io"
18+
"log"
19+
"os"
20+
"path"
21+
"path/filepath"
2222
)
2323

2424
var (
@@ -270,11 +270,13 @@ func (w *Worktree) Add(path string) (plumbing.Hash, error) {
270270
return plumbing.ZeroHash, err
271271
}
272272

273+
log.Println("status passed #1")
273274
idx, err := w.r.Storer.Index()
274275
if err != nil {
275276
return plumbing.ZeroHash, err
276277
}
277278

279+
log.Println("storer passed #2")
278280
var h plumbing.Hash
279281
var added bool
280282

@@ -285,6 +287,7 @@ func (w *Worktree) Add(path string) (plumbing.Hash, error) {
285287
added, err = w.doAddDirectory(idx, s, path)
286288
}
287289

290+
log.Println("fs lstat passed #3")
288291
if err != nil {
289292
return h, err
290293
}

0 commit comments

Comments
 (0)