asciidoctor / jekyll-asciidoc-quickstart

A template project for creating AsciiDoc-based websites using Jekyll.
https://asciidoctor.github.io/jekyll-asciidoc-quickstart/
MIT License
119 stars 159 forks source link

Step 7 - Error: unable to auto-detect email address #23

Closed bartvanderwal closed 7 years ago

bartvanderwal commented 7 years ago

Hi, I followed the walkthrough and after step 6 Travis starts building, but I'm getting this error:

Can you help? On my local machine GIT ofcourse knows my name and e-mail, but it seems on the Travis server it is not known, but should be.

Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'travis@testing-docker-0ae8e4c3-04a6-490c-aadf-812e6f11d678.(none)')
bartvanderwal commented 7 years ago

By the way, the site work okay locally (jekyll serve); and I didn't change anything.

This screenshot shows the full stack trace in Travis: error-jekyll-asciidoc-quickstart

araraloren commented 7 years ago

@bartvanderwal I faced same problem, but I found this closed issue solve this. jirutka/rake-jekyll#issues-14

bartvanderwal commented 7 years ago

@araraloren Thanks. But you're pointing to my own issue... :) (23). Which one did you mean?

johncarl81 commented 7 years ago

@araraloren may be referring to https://github.com/jirutka/rake-jekyll/issues/14 which should fix your issue. The fix is to set the t.committer in the RakeFile:

require 'rake-jekyll'

Rake::Jekyll::GitDeployTask.new(:deploy) do |t|
    t.committer = 'Jekyll<jekyll@jekyll.com>'
end
araraloren commented 7 years ago

@bartvanderwal sorry I paste wrong url.

@johncarl81 yeah, thanks