stuff
This commit is contained in:
parent
e09849b1a2
commit
c5025d25b2
|
@ -38,6 +38,7 @@ func doPatch() error {
|
||||||
log.Info("patch", p.Filename, p.Namespace)
|
log.Info("patch", p.Filename, p.Namespace)
|
||||||
}
|
}
|
||||||
me.forge.SubmitPatchesNew(old, "oldpatchset")
|
me.forge.SubmitPatchesNew(old, "oldpatchset")
|
||||||
|
log.Infof("submitted %d old patches\n", old.Len())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,14 @@ func cleanSubject(line string) string {
|
||||||
return strings.TrimSpace(cleaned)
|
return strings.TrimSpace(cleaned)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// jcarr@framebook:~/go/src/go.wit.com/lib/protobuf/forgepb$ git branch --contains 4a27e7702b9b975b066ec9d2ee7ac932d86552e3
|
||||||
|
// * jcarr
|
||||||
|
// jcarr@framebook:~/go/src/go.wit.com/lib/protobuf/forgepb$ git merge-base --is-ancestor "4a27e7702b9b975b066ec9d2ee7ac932d86552e3" "devel" ; echo $?
|
||||||
|
// 1
|
||||||
|
// jcarr@framebook:~/go/src/go.wit.com/lib/protobuf/forgepb$ git merge-base --is-ancestor "4a27e7702b9b975b066ec9d2ee7ac932d86552e3" "jcarr" ; echo $?
|
||||||
|
// 0
|
||||||
|
|
||||||
|
|
||||||
func findCommitByHash(hash string, subject string) (string, error) {
|
func findCommitByHash(hash string, subject string) (string, error) {
|
||||||
cmd := exec.Command("git", "log", "--pretty=format:%H %s")
|
cmd := exec.Command("git", "log", "--pretty=format:%H %s")
|
||||||
var out bytes.Buffer
|
var out bytes.Buffer
|
||||||
|
|
Loading…
Reference in New Issue