Skip to content

Commit fff0a1d

Browse files
committed
adjust processing message
1 parent ce4609b commit fff0a1d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cmd/hook.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ Gitea or set your environment appropriately.`, "")
236236
}
237237

238238
if count == 0 {
239+
240+
fmt.Fprintf(os.Stderr, "Processed %d references in total\n", total)
241+
os.Stderr.Sync()
242+
239243
return nil
240244
}
241245

@@ -245,15 +249,17 @@ Gitea or set your environment appropriately.`, "")
245249

246250
fmt.Fprintf(os.Stderr, " Processing %d references\n", count)
247251
os.Stderr.Sync()
248-
fmt.Fprintf(os.Stderr, "Processed %d references in total\n", total)
249-
os.Stderr.Sync()
250252

251253
resps, err := private.HookPostReceive(repoUser, repoName, hookOptions)
252254
if resps == nil {
253255
hookPrintResults(results)
254256
fail("Internal Server Error", err)
255257
}
256258
results = append(results, resps...)
259+
260+
fmt.Fprintf(os.Stderr, "Processed %d references in total\n", total)
261+
os.Stderr.Sync()
262+
257263
hookPrintResults(results)
258264

259265
return nil

0 commit comments

Comments
 (0)