• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

preaction / Statocles / 396 / 9
90%
master: 90%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2015 06:05AM UTC
Files 30
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2015 05:55AM UTC coverage: 94.254%. Remained the same
COVERAGE=1

push

travis-ci

preaction
add error if repository has no commits

If a repository has no commits, and therefore no branches, we can't
create a deploy branch, we can't move back where we were (indeed,
because we weren't anywhere at all).

The error we get from recent gits could be (running "git rm -rf ."):

    fatal: pathspec '.' did not match any files

Or from earlier versions of git (running "git checkout -b <branch>"):

    fatal: You are on a branch yet to be born

Now we check for this condition and give users a friendly error message
asking them to create a commit first.

Fixes #386

1017 of 1079 relevant lines covered (94.25%)

547.81 hits per line

Source Files on job 396.9 (COVERAGE=1)
  • Tree
  • List 0
  • Changed 11
  • Source Changed 1
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 396
  • Travis Job 396.9
  • 8967da09 on github
  • Prev Job for COVERAGE=1 on master (#395.9)
  • Next Job for COVERAGE=1 on master (#397.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc