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

mbtproject / mbt / 560 / 1
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 09 Aug 2019 06:12AM UTC
Files 17
Run time 3s
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 Aug 2019 06:10AM UTC coverage: 84.315% (-0.2%) from 84.557%
560.1

push

travis-ci

buddyspike
[fix] Correctly restore detached head after build or custom command

Problem
When repository is in detached state, calling `.Name()` on
`Reference` returned by `Repository.Head()` returns `HEAD`.

When restoring this reference after the build, we pass this value to
`Repository.SetHead` method which basically peels current `HEAD`
to update the value. Since HEAD file is not updated, the diff between
the two trees appear in index as uncommitted.

Solution Overview
- `Reference` returned by `Checkout` has a new member called
`SymbolicName`.
- `SymbolicName` is set to reference name when repository is not in
detached state. Otherwise it has the default empty string.
- During restore, we rely on `SymbolicName` to determine whether to set
HEAD to a symbolic name or a commit SHA in detached mode.

Closes #122

1360 of 1613 relevant lines covered (84.31%)

89.09 hits per line

Source Files on job 560.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 414
  • Travis Job 560.1
  • 1dd1e604 on github
  • Prev Job for on master (#558.1)
  • Next Job for on master (#561.1)
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