summaryrefslogtreecommitdiff
path: root/patchset.Make.go
diff options
context:
space:
mode:
Diffstat (limited to 'patchset.Make.go')
-rw-r--r--patchset.Make.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/patchset.Make.go b/patchset.Make.go
index 37c7c7d..a33c930 100644
--- a/patchset.Make.go
+++ b/patchset.Make.go
@@ -9,17 +9,18 @@ import (
"time"
"github.com/google/uuid"
+ "go.wit.com/lib/hostname"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
-func (f *Forge) newPatchset(name string) *Patchset {
+func newPatchset(name string) *Patchset {
pset := new(Patchset)
pset.Name = name
pset.Ctime = timestamppb.New(time.Now())
pset.Uuid = uuid.New().String()
- pset.Hostname = f.Machine.hostname
+ pset.Hostname, _ = hostname.Get()
return pset
}