Skip to content

Commit

Permalink
fix procedure syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jun 2, 2018
1 parent 300645d commit ae9b17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/typesafe/sbt/git/GitRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait GitRunner {
*/
def apply(args: String*)(cwd: File, log: Logger): String
/** Commits all local changes and pushes the new commit to a remote repository. */
def commitAndPush(msg: String, tag: Option[String] = None)(repo: File, log: Logger) {
def commitAndPush(msg: String, tag: Option[String] = None)(repo: File, log: Logger): Unit = {
apply("add", ".")(repo, log)
apply("commit", "-m", msg, "--allow-empty")(repo, log)
for(tagString <- tag) apply("tag", tagString)(repo, log)
Expand Down

0 comments on commit ae9b17e

Please sign in to comment.