Browse code

Printing duplicate messages during startbuild

Clayton Coleman authored on 2016/06/01 04:49:46
Showing 1 changed files
... ...
@@ -450,7 +450,6 @@ func streamPathToBuild(git git.Repository, in io.Reader, out io.Writer, client o
450 450
 			if len(options.Commit) > 0 {
451 451
 				commit = options.Commit
452 452
 			}
453
-			fmt.Fprintf(out, "Uploading %q at commit %q as binary input for the build ...\n", clean, commit)
454 453
 			info, gitErr := gitRefInfo(git, clean, commit)
455 454
 			if gitErr == nil {
456 455
 				options.Commit = info.GitSourceRevision.Commit
... ...
@@ -464,6 +463,7 @@ func streamPathToBuild(git git.Repository, in io.Reader, out io.Writer, client o
464 464
 			}
465 465
 
466 466
 			if asRepo {
467
+				fmt.Fprintf(out, "Uploading %q at commit %q as binary input for the build ...\n", clean, commit)
467 468
 				if gitErr != nil {
468 469
 					return nil, fmt.Errorf("the directory %q is not a valid Git repository: %v", clean, gitErr)
469 470
 				}