diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-24 23:14:10 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-24 23:14:10 -0500 |
commit | 06bc5a7047404869a1606deb49809001305d028f (patch) | |
tree | 9e2f83007e2545a611ab26b3c8b78360c6c6b91b | |
parent | e1f5f66b99c953bae3b2f2a4e032c2e227083f44 (diff) |
Update for change in libfastimport
-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 |