From 06bc5a7047404869a1606deb49809001305d028f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 24 Nov 2017 23:14:10 -0500 Subject: Update for change in libfastimport --- filter.go | 9 ++++----- 1 file 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 -- cgit v1.2.2