Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

*: several windows support fixes #493

Merged
merged 13 commits into from
Jul 19, 2017
Merged

*: several windows support fixes #493

merged 13 commits into from
Jul 19, 2017

Conversation

mcuadros
Copy link
Contributor

No description provided.

@mcuadros mcuadros requested a review from smola July 19, 2017 12:05
@mcuadros mcuadros force-pushed the windows branch 2 times, most recently from e6ff7f6 to c4d557e Compare July 19, 2017 13:28
@codecov
Copy link

codecov bot commented Jul 19, 2017

Codecov Report

Merging #493 into master will increase coverage by 0.39%.
The diff coverage is 70.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
+ Coverage   78.05%   78.44%   +0.39%     
==========================================
  Files         127      127              
  Lines        9376     9715     +339     
==========================================
+ Hits         7318     7621     +303     
- Misses       1251     1266      +15     
- Partials      807      828      +21
Impacted Files Coverage Δ
worktree_linux.go 100% <ø> (ø) ⬆️
plumbing/transport/server/loader.go 85.71% <ø> (ø) ⬆️
utils/merkletrie/index/node.go 93.93% <100%> (ø) ⬆️
utils/merkletrie/filesystem/node.go 65.43% <100%> (ø) ⬆️
storage/filesystem/internal/dotgit/dotgit.go 72.61% <20%> (-1.66%) ⬇️
plumbing/format/config/encoder.go 52.94% <25%> (-1.9%) ⬇️
worktree.go 71.56% <33.33%> (+5.69%) ⬆️
worktree_commit.go 73.91% <91.66%> (ø) ⬆️
options.go 79.48% <0%> (-5%) ⬇️
remote.go 76.86% <0%> (+4.73%) ⬆️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 595dfe6...4a7e7cd. Read the comment docs.

@@ -388,7 +383,15 @@ func (d *DotGit) rewritePackedRefsWithoutRef(name plumbing.ReferenceName) (err e
return nil
}

return d.fs.Rename(tmpPath, packedRefsPath)
if err := f.Close(); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use CheckClose here for both cases? Otherwise, if closing f fails, tmp is not closed.

@mcuadros mcuadros merged commit 8738a04 into master Jul 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants