src-d / go-git
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
go.mod has changed.
go.sum has changed.

@@ -138,17 +138,22 @@
Loading
138 138
		return
139 139
	}
140 140
141 -
	// Include a dummy year in this time.Parse() call to avoid a bug in Go:
142 -
	// https://github.com/golang/go/issues/19750
143 -
	//
144 -
	// Parsing the timezone with no other details causes the tl.Location() call
145 -
	// below to return time.Local instead of the parsed zone in some cases
146 -
	tl, err := time.Parse("2006 -0700", "1970 "+string(b[tzStart:tzStart+timeZoneLength]))
141 +
	timezone := string(b[tzStart : tzStart+timeZoneLength])
142 +
	tzhours, err := strconv.ParseInt(timezone[0:3], 10, 64)
147 143
	if err != nil {
148 144
		return
149 145
	}
146 +
	tzmins, err := strconv.ParseInt(timezone[3:], 10, 64)
147 +
	if err != nil {
148 +
		return
149 +
	}
150 +
	if tzhours < 0 {
151 +
		tzmins *= -1
152 +
	}
153 +
154 +
	tz := time.FixedZone("", int(tzhours*60*60+tzmins*60))
150 155
151 -
	s.When = s.When.In(tl.Location())
156 +
	s.When = s.When.In(tz)
152 157
}
153 158
154 159
func (s *Signature) encodeTimeAndTimeZone(w io.Writer) error {
Files Coverage
cli/go-git 0.00%
config 89.85%
internal 89.59%
plumbing 81.33%
storage 78.22%
utils 83.49%
blame.go 58.40%
common.go 100.00%
object_walker.go 73.91%
options.go 84.81%
prune.go 56.52%
references.go 76.34%
remote.go 76.87%
repository.go 74.23%
status.go 57.14%
submodule.go 63.92%
worktree.go 70.80%
worktree_commit.go 77.59%
worktree_linux.go 80.00%
worktree_status.go 72.49%
Project Totals (171 files) 79.65%
3036.3
TRAVIS_OS_NAME=linux
1.11=.11
3036.2
TRAVIS_OS_NAME=linux
1.11=.11
3036.4
TRAVIS_OS_NAME=linux
1.12=.12
3036.5
TRAVIS_OS_NAME=linux
1.12=.12
3036.6
TRAVIS_OS_NAME=linux
1.12=.12
3036.1
TRAVIS_OS_NAME=linux
1.11=.11

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading