summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/filter.go b/filter.go
index 6855271..50c3d19 100644
--- a/filter.go
+++ b/filter.go
@@ -11,7 +11,6 @@ import (
"strings"
"git.lukeshu.com/go/libfastimport"
- "git.lukeshu.com/go/libfastimport/textproto"
)
type fullcommit struct {
@@ -223,7 +222,7 @@ func (f *Filter) Run() error {
outcommit.fileactions = append(outcommit.fileactions,
libfastimport.FileModify{
Mode: cmdt.Mode,
- Path: textproto.Path(filename),
+ Path: libfastimport.Path(filename),
DataRef: cmdt.DataRef,
})
if filename == "PKGBUILD" {
@@ -234,7 +233,7 @@ func (f *Filter) Run() error {
outcommit.fileactions = append(outcommit.fileactions,
libfastimport.FileModify{
Mode: cmdt.Mode,
- Path: textproto.Path(".SRCINFO"),
+ Path: libfastimport.Path(".SRCINFO"),
DataRef: srcinfo,
})
}
@@ -275,12 +274,12 @@ func (f *Filter) Run() error {
outcommit := f.curCommitOut[branch_ref]
outcommit.fileactions = append(outcommit.fileactions,
libfastimport.FileDelete{
- Path: textproto.Path(filename),
+ Path: libfastimport.Path(filename),
})
if filename == "PKGBUILD" {
outcommit.fileactions = append(outcommit.fileactions,
libfastimport.FileDelete{
- Path: textproto.Path(".SRCINFO"),
+ Path: libfastimport.Path(".SRCINFO"),
})
}
f.curCommitOut[branch_ref] = outcommit