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

sds / overcommit / 744 / 3
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 09 Apr 2015 06:33PM UTC
Files 105
Run time 7s
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

09 Apr 2015 06:24PM UTC coverage: 89.186% (+0.05%) from 89.134%
2.1

push

travis-ci

sds
Add test ensuring empty submodule directories are removed

This threw me for a loop for a little while because of the differences
in behavior between git 1.8 and 2.3 (the versions I run on CentOS and
Mac OS X, respectively).

In git 1.8, you can't stash submodule changes, but you can in git 2.3.
Thus there's a slight difference in what happens given the code we have
now.

In git 1.8, we would check to see if you had only staged submodule
changes (by checking if no stash was created), and would not hard
reset in that case. Since there was no hard reset, no empty submodule
directory would be created, and all is well (though we don't have any
stash to restore anyway).

In git 2.3, a stash would be created so we would hard reset. This would
create an empty submodule directory which we would then have to
explicitly remove in order to restore the stash we just created.

The test I've added passes for both versions of git, even though it's
technically only testing git 2.3. We'll have to come up with a way of
running overcommit tests against multiple versions of git in Travis so
we know we're not writing version-specific implementations.

1699 of 1905 relevant lines covered (89.19%)

24.23 hits per line

Source Files on job 744.3 (2.1)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 744
  • Travis Job 744.3
  • 25f9e62d on github
  • Prev Job for 2.1 on master (#743.3)
  • Next Job for 2.1 on master (#745.3)
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