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

preaction / Statocles / 396
90%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2015 06:05AM UTC
Jobs 1
Files 30
Run time 6s
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

pending completion
396

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

Jobs
ID Job ID Ran Files Coverage
9 396.9 (COVERAGE=1) 10 Sep 2015 06:05AM UTC 0
94.25
Travis Job 396.9
Source Files on build 396
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #396
  • 8967da09 on github
  • Prev Build on master (#395)
  • Next Build on master (#397)
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