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

sds / overcommit / 1592 / 2
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 10 Feb 2018 08:23PM UTC
Files 182
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 Feb 2018 08:20PM UTC coverage: 89.921% (+0.02%) from 89.905%
2.2

push

travis-ci

sds
<a href="https://github.com/brigade/overcommit/commit/<a class=hub.com/sds/overcommit/commit/<a class="double-link" href="https://git"><a class=hub.com/sds/overcommit/commit/<a class="double-link" href="https://git"><a class=hub.com/sds/overcommit/commit/<a class="double-link" href="https://git"><a class=hub.com/sds/overcommit/commit/<a class="double-link" href="https://git"><a class=hub.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da">5af4021b3<a href="https://github.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da">&lt;a href=&quot;https://github.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&quot;&gt;&amp;lt;a href=&amp;quot;https://github.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&amp;quot;&amp;gt;&amp;amp;quot;&amp;amp;gt;Update PrePush Modified Files and Lines with Multiple Branches Push

In `pre-push` hook, it receives multiple ref ranges when we pushed multiple
branches to remote.

Below is pushing multiple branches plus setting up the upstream branch on remote.
```
command:
git push origin -u tj-test tj-test-2

stdin:
refs/heads/tj-test &amp;lt;/a&amp;gt;&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://github.com/brigade/overcommit/commit/&amp;amp;lt;a class=&amp;amp;quot;double-link&amp;amp;quot; href=&amp;amp;quot;https://git&amp;quot;&amp;gt;&amp;amp;lt;a class=&amp;lt;/a&amp;gt;hub.com/brigade/overcommit/commit/&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://github.com/sds/overcommit/commit/&amp;amp;lt;a class=&amp;amp;quot;double-link&amp;amp;quot; href=&amp;amp;quot;https://git&amp;quot;&gt;&amp;lt;a class=&lt;/a&gt;hub.com/sds/overcommit/commit/62738e20036f58060a8f94ff8cd73733acb6561b&quot;&gt;62738e200&lt;/a&gt;&lt;a href=&quot;https://github.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&quot;&gt;&amp;quot;&amp;gt;62738e200&amp;lt;/a&amp;gt;&amp;lt;a href=&amp;quot;https://github.com/brigade/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&amp;quot;&amp;gt;&amp;amp;lt;a href=&amp;amp;quot;https://github.com/brigade/overcommit/co</a>mmit/5af4021b3359ebb2be2310e4f2e6247902f149da&amp;quot;&amp;gt; refs/heads/tj-test &amp;lt;/a&amp;gt;&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://github.com/brigade/overcommit/commit/&amp;amp;lt;a class=&amp;amp;quot;double-link&amp;amp;quot; href=&amp;quot;https://git&quot;&gt;&amp;lt;a class=&lt;/a&gt;hub.com/brigade/overcommit/commit/<a class="double-link" href="https://github.com/sds/overcommit/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/sds/overcommit/commit/0000000000000000000000000000000000000000">000000000</a><a href="https://github.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da">&amp;quot;&amp;gt;000000000&amp;lt;/a&amp;gt;&amp;lt;a href=&amp;quot;https://github.com/brigade/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&amp;quot;&amp;gt;&amp;amp;lt;a href=&lt;/a&gt;&amp;quot;https://githu&lt;/a&gt;b.com/brigade/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&quot;&gt;
refs/heads/tj-test-2 &amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://github.com/brigade/overcommit/commit/&amp;amp;lt;a class=&amp;amp;quot;double-link&amp;amp;quot; href=&amp;amp;quot;https://git&amp;quot;&amp;gt;&amp;amp;lt;a class=&amp;lt;/a&amp;gt;hub.com/brigade/overcommit/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://github.com/sds/overcommit/commit/&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://git&quot;&gt;&amp;lt;a class=&lt;/a&gt;hub.com/sds/overcommit/commit/feb40b515f598723fe043b7cb9510f28c287d642&quot;&gt;feb40b515&lt;/a&gt;&lt;a href=&quot;https://github.com/sds/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da">&amp;quot;&amp;gt;feb40b515&amp;lt;/a&amp;gt;&amp;lt;a href=&amp;quot;https://github&lt;/a&gt;.com/brigade/overcommit/commit/5af4021b3359ebb2be2310e4f2e6247902f149da&quot;> refs/heads/tj-test-2 0000000000000000000000000000000000000000
```

Below is pushing multiple branches which already has upstream branch on remote.
```
command:
git push origin tj-test tj-test-2

stdin:
refs/heads/tj-test &lt;a class=&quot;double-link&quot; href=&quot;https://github.com/brigade/overcommit/commit/<a class="double-link" href="https://github.com/sds/overcommit/commit/61bc13ab2e717633441855d534904c5036f342dd">61bc13ab2</a>&quot;&gt;61bc13ab2&lt;/a&gt; refs/heads/tj-test 62738e20036f58060a8f94ff8cd73733acb6561b
refs/heads/tj-test-2 &lt;a class=&quot;double-link&quot; href=&quot;https://github.com/brigade/overcommit/commit/<a class="double-link" href="https://github.com/sds/overcommit/commit/1e371d2c345e00c34410372dad2d7602aca99908">1e371d2c3</a>&quot;&gt;1e371d2c3&lt;/a&gt; refs/heads</a>/tj-test-2 feb40b515f598723fe043b7cb9510f28c287d642
```

With these multiple ref ranges, we should read all of them during pre-push `modified_files` and `modified_lines_in_file`.

2748 of 3056 relevant lines covered (89.92%)

103.11 hits per line

Source Files on job 1592.2 (2.2)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1592
  • Travis Job 1592.2
  • 5af4021b on github
  • Prev Job for 2.2 on master (#1580.2)
  • Next Job for 2.2 on master (#1593.2)
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