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

sds / overcommit / 1592
91%

Build:
DEFAULT BRANCH: master
Ran 10 Feb 2018 08:23PM UTC
Jobs 4
Files 182
Run time 1min
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
1592

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`.

2761 of 3070 relevant lines covered (89.93%)

411.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1592.1 (2.1) 10 Feb 2018 08:24PM UTC 0
90.2
Travis Job 1592.1
2 1592.2 (2.2) 10 Feb 2018 08:23PM UTC 0
89.92
Travis Job 1592.2
3 1592.3 (2.3.6) 10 Feb 2018 08:23PM UTC 0
89.93
Travis Job 1592.3
4 1592.4 (2.4.3) 10 Feb 2018 08:23PM UTC 0
89.93
Travis Job 1592.4
Source Files on build 1592
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1592
  • 5af4021b on github
  • Prev Build on master (#1580)
  • Next Build on master (#1593)
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