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

mbtproject / mbt / 560
85%

Build:
DEFAULT BRANCH: master
Ran 09 Aug 2019 06:12AM UTC
Jobs 2
Files 17
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

09 Aug 2019 06:10AM UTC coverage: 84.315% (-0.2%) from 84.557%
560

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

22 of 22 new or added lines in 1 file covered. (100.0%)

1360 of 1613 relevant lines covered (84.31%)

173.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 560.1 09 Aug 2019 06:12AM UTC 0
84.31
Travis Job 560.1
2 560.2 09 Aug 2019 06:14AM UTC 0
84.31
Travis Job 560.2
Source Files on build 560
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #560
  • 1dd1e604 on github
  • Prev Build on master (#558)
  • Next Build on master (#561)
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