diff options
| author | Jeff Carr <[email protected]> | 2025-01-05 03:21:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-05 03:21:47 -0600 |
| commit | ac57825c107b84a8728cea425a1f3f639ab146a8 (patch) | |
| tree | 1528b43f61713f88b3048347b1e8e6d5badd23de /patch.Make.go | |
| parent | 338018376b48d5ccdc20cb9733acd0db2a9ccc79 (diff) | |
start adding something to check the hashes
Diffstat (limited to 'patch.Make.go')
| -rw-r--r-- | patch.Make.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/patch.Make.go b/patch.Make.go index 7a061f1..0920fdf 100644 --- a/patch.Make.go +++ b/patch.Make.go @@ -102,11 +102,12 @@ func (pset *Patchs) makePatchSetNew(repo *gitpb.Repo) error { return nil } - return pset.addPatchFiles(repo.GetGoPath()) + return pset.addPatchFiles(repo) } // process each file in pDir/ -func (p *Patchs) addPatchFiles(psetDir string) error { +func (p *Patchs) addPatchFiles(repo *gitpb.Repo) error { + psetDir := repo.GetGoPath() tmpDir := p.TmpDir log.Info("ADD PATCH FILES ADDED DIR", tmpDir) fullDir := filepath.Join(tmpDir, psetDir) @@ -135,6 +136,7 @@ func (p *Patchs) addPatchFiles(psetDir string) error { patch := new(Patch) patch.Filename, _ = filepath.Rel(p.TmpDir, path) patch.Data = data + patch.StartHash = repo.DevelHash() p.Patchs = append(p.Patchs, patch) log.Info("ADDED PATCH FILE", path) return nil |
