diff options
-rw-r--r-- | filter.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |