summaryrefslogtreecommitdiff
path: root/frontend.go
diff options
context:
space:
mode:
Diffstat (limited to 'frontend.go')
-rw-r--r--frontend.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend.go b/frontend.go
index 285bbd9..d0c8c10 100644
--- a/frontend.go
+++ b/frontend.go
@@ -67,21 +67,21 @@ func (f *Frontend) RespondCatBlob(sha1 string, data string) error {
return f.catBlobFlush.Flush()
}
-func (f *Frontend) RespondLs(mode textproto.Mode, dataref string, path textproto.Path) error {
+func (f *Frontend) RespondLs(mode Mode, dataref string, path Path) error {
var err error
if mode == 0 {
err = f.catBlobWrite.WriteLine("missing", path)
} else {
var t string
switch mode {
- case textproto.ModeDir:
+ case ModeDir:
t = "tree"
- case textproto.ModeGit:
+ case ModeGit:
t = "commit"
default:
t = "blob"
}
- err = f.catBlobWrite.WriteLine(mode, t, dataref+"\t"+textproto.PathEscape(path))
+ err = f.catBlobWrite.WriteLine(mode, t, dataref+"\t"+PathEscape(path))
}
if err != nil {
return err