gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Jan. 30 '23 01:02:11
Commit
5e902d2d6565a27cd0b47278df5c6a43f32c8a33
Parent
5708dd9c0940dd83a35b8397301ca944ad68a6dd
Changes
diff --git a/main.go b/main.go
index 7e36087..9211304 100644
--- a/main.go
+++ b/main.go
@@ -363,11 +363,8 @@ func main() {
 
 	for _, b := range branches {
 		log.Printf("processing branch: %s", b)
-		wg.Add(1)
 
 		go func() {
-			defer wg.Done()
-
 			dst := filepath.Join(pro.base, "branch", b.Name, "index.html")
 
 			if err := os.MkdirAll(filepath.Dir(dst), 0755); err != nil {
@@ -420,11 +417,7 @@ func main() {
 			}
 
 			for _, par := range c.Parents {
-				wg.Add(1)
-
-				go func() {
-					defer wg.Done()
-
+				func() {
 					cmd := exec.Command("git", "diff", "-p", fmt.Sprintf("%s..%s", par, c.Hash))
 					cmd.Dir = pro.repo