Skip to content

Commit

Permalink
Merge pull request #153 from xuwei-k/procedure-syntax
Browse files Browse the repository at this point in the history
fix procedure syntax
  • Loading branch information
dwijnand authored Jun 3, 2018
2 parents 300645d + ae9b17e commit 3dd1343
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 3dd1343

Please sign in to comment.