diff options
Diffstat (limited to 'doPatch.go')
| -rw-r--r-- | doPatch.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -13,6 +13,7 @@ import ( "regexp" "strings" + "go.wit.com/lib/config" "go.wit.com/lib/fhelp" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -37,7 +38,10 @@ func isPatchingSafe() bool { func doPatch() (string, error) { // var changed bool me.curpatches = forgepb.NewPatches() - me.curpatches.Filename = "/tmp/curpatches.pb" + me.curpatches.Filename = config.Get("curpatches") + if me.curpatches.Filename == "" { + panic("config failed") + } if err := me.curpatches.Load(); err != nil { me.curpatches.Save() me.curpatches.Save() @@ -46,7 +50,7 @@ func doPatch() (string, error) { // return // // THIS IS NEEDED? NOTSURE me.curpatches = forgepb.NewPatches() - me.curpatches.Filename = "/tmp/curpatches.pb" + me.curpatches.Filename = config.Get("curpatches") me.curpatches.Save() } |
