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

sds / overcommit / 744
91%

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

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.

1875 of 2120 relevant lines covered (88.44%)

113.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 744.1 (1.9.3) 09 Apr 2015 06:33PM UTC 0
89.21
Travis Job 744.1
2 744.2 (2.0) 09 Apr 2015 06:33PM UTC 0
89.19
Travis Job 744.2
3 744.3 (2.1) 09 Apr 2015 06:33PM UTC 0
89.19
Travis Job 744.3
4 744.4 (2.2) 09 Apr 2015 06:33PM UTC 0
89.19
Travis Job 744.4
5 744.5 (jruby-19mode) 29 Nov 2016 09:43AM UTC 0
63.92
Travis Job 744.5
6 744.6 (rbx-2) 09 Apr 2015 06:39PM UTC 0
93.57
Travis Job 744.6
Source Files on build 744
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #744
  • 25f9e62d on github
  • Prev Build on master (#743)
  • Next Build on master (#745)
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