+1
-1
knotserver/git/git.go
+1
-1
knotserver/git/git.go
+8
-1
knotserver/git/tree.go
+8
-1
knotserver/git/tree.go
···
2
3
import (
4
"fmt"
5
+
"time"
6
7
"github.com/go-git/go-git/v5/plumbing/object"
8
"tangled.sh/tangled.sh/core/types"
···
57
lastCommit, err := g.LastCommitForPath(fpath)
58
if err != nil {
59
fmt.Println("error getting last commit time:", err)
60
+
// We don't want to skip the file, so worst case lets just
61
+
// populate it with "defaults".
62
+
lastCommit = &types.LastCommitInfo{
63
+
Hash: g.h,
64
+
Message: "",
65
+
When: time.Now(),
66
+
}
67
}
68
69
nts = append(nts, types.NiceTree{