瀏覽代碼

Report git log as a separate event

Vadim Markovtsev 6 年之前
父節點
當前提交
740ecde6c2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      cmd/hercules/root.go

+ 2 - 1
cmd/hercules/root.go

@@ -183,6 +183,7 @@ targets can be added using the --plugin system.`,
 		if commitsFile == "" {
 			// list of commits belonging to the default branch, from oldest to newest
 			// rev-list --first-parent
+			fmt.Fprint(os.Stderr, "git log...\r")
 			commits = pipeline.Commits()
 		} else {
 			var err error
@@ -192,7 +193,7 @@ targets can be added using the --plugin system.`,
 			}
 		}
 		cmdlineFacts["commits"] = commits
-		deployed := []hercules.LeafPipelineItem{}
+		var deployed []hercules.LeafPipelineItem
 		for name, valPtr := range cmdlineDeployed {
 			if *valPtr {
 				item := pipeline.DeployItem(hercules.Registry.Summon(name)[0])