summaryrefslogtreecommitdiff
path: root/patchset.Make.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-17 10:59:28 -0600
committerJeff Carr <[email protected]>2025-01-17 10:59:28 -0600
commit156af568594e6c1b7be8c4d2c4256ba5117b0a1b (patch)
treed725e6b64c09422f90dc7842d77e8f4eedb8060a /patchset.Make.go
parent8d275ff0545c6069da78b581bcefdc8b8f951cc9 (diff)
init patches
Diffstat (limited to 'patchset.Make.go')
-rw-r--r--patchset.Make.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/patchset.Make.go b/patchset.Make.go
index ac1c60b..1a7cec6 100644
--- a/patchset.Make.go
+++ b/patchset.Make.go
@@ -139,6 +139,9 @@ func (p *Patchset) addPatchFiles(repo *gitpb.Repo) error {
patch.Data = data
patch.parseData()
patch.StartHash = repo.DevelHash()
+ if p.Patches == nil {
+ p.Patches = new(Patches)
+ }
p.Patches.Append(patch)
log.Info("ADDED PATCH FILE", path)
return nil