summaryrefslogtreecommitdiff
path: root/applyPatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'applyPatch.go')
-rw-r--r--applyPatch.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/applyPatch.go b/applyPatch.go
index 3610c06..1ca716c 100644
--- a/applyPatch.go
+++ b/applyPatch.go
@@ -95,11 +95,6 @@ func applyPatchset(pset *forgepb.Patchset) error {
log.Info("Should run: at", basedir, ":", cmd)
log.Info(basedir, filename)
result := shell.PathRun(basedir, cmd)
- /*
- if err != nil {
- log.Info("git am failed", err)
- }
- */
for _, line := range result.Stdout {
log.Warn("stdout:", line)
}
@@ -107,32 +102,6 @@ func applyPatchset(pset *forgepb.Patchset) error {
log.Warn("stderr:", line)
}
}
- /*
- // log.Info("pset filename FILENAME IS REAL?", p.Filename, pset.Name, pset.Comment)
- basepath, filename := filepath.Split(p.Filename)
- fullpath := filepath.Join(me.forge.GetGoSrc(), basepath)
- log.Info("pset filename FILENAME IS REAL? fullpath", fullpath)
- fullTmpdir := filepath.Join(tmpdir, basepath)
- err := os.MkdirAll(fullTmpdir, os.ModePerm)
- if err != nil {
- log.Info("applyPathces() MkdirAll failed for", fullTmpdir)
- log.Info("applyPathces() MkdirAll failed err", err)
- everythingworked = false
- continue
- }
- log.Info("pset filename FILENAME IS REAL? tmp fullTmpdir", fullTmpdir)
- tmpname := filepath.Join(fullTmpdir, filename)
- raw, _ := os.OpenFile(tmpname, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
- raw.Write(p.Data)
- raw.Close()
- */
- /*
- result := shell.PathRun(fullpath, cmd)
- if result.Exit != 0 {
- log.Info("cmd failed", cmd, result.Exit)
- everythingworked = false
- }
- */
everythingworked = false
}
if everythingworked {