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

*: windows support, some more fixes #533

Merged
merged 4 commits into from
Aug 3, 2017

Conversation

mcarmonaa
Copy link
Contributor

The following bugs related to this log have been addressed:

  • "152 FAIL: worktree_test.go:278: WorktreeSuite.TestCheckoutSymlink"
  • "296 FAIL: receive_pack_test.go:36: ReceivePackSuite.TearDownTest"
  • "143 FAIL: worktree_test.go:367: WorktreeSuite.TestCheckoutIndexOS"
  • "134 FAIL: repository_test.go:340: RepositorySuite.TestPlainOpenBareRelativeGitDirFileTrailingGarbage"

@mcarmonaa mcarmonaa requested a review from smola August 2, 2017 14:57
repository.go Outdated
@@ -286,7 +286,8 @@ func dotGitFileToOSFilesystem(path string, fs billy.Filesystem) (billy.Filesyste
return nil, fmt.Errorf(".git file has no %s prefix", prefix)
}

gitdir := line[len(prefix):]
gitdir := strings.Split(line[len(prefix):], "\n")[0]
gitdir = strings.Trim(gitdir, "\r")
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't the following line's TrimSpace already remove the \r?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, certainly it already does. Thanks for point it!

@mcuadros mcuadros changed the title Fix/windows support *: windows support, some more fixes Aug 2, 2017
@mcarmonaa mcarmonaa force-pushed the fix/windows-support branch from 53ec86e to fadb6e9 Compare August 3, 2017 06:13
@codecov
Copy link

codecov bot commented Aug 3, 2017

Codecov Report

Merging #533 into master will decrease coverage by 0.65%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #533      +/-   ##
==========================================
- Coverage   78.17%   77.52%   -0.66%     
==========================================
  Files         129      129              
  Lines        9749     9747       -2     
==========================================
- Hits         7621     7556      -65     
- Misses       1302     1376      +74     
+ Partials      826      815      -11
Impacted Files Coverage Δ
repository.go 74.78% <100%> (+0.05%) ⬆️
plumbing/transport/ssh/common.go 20.54% <0%> (-45.21%) ⬇️
plumbing/transport/ssh/auth_method.go 33.33% <0%> (-24.77%) ⬇️
worktree_status.go 71.74% <0%> (-1.8%) ⬇️
utils/merkletrie/noder/path.go 100% <0%> (ø) ⬆️

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 3713791...fadb6e9. Read the comment docs.

@mcuadros mcuadros merged commit b29ccd9 into src-d:master Aug 3, 2017
mcarmonaa added a commit to mcarmonaa/go-git that referenced this pull request Aug 4, 2017
* fixed windows failed test: "134 FAIL: repository_test.go:340: RepositorySuite.TestPlainOpenBareRelativeGitDirFileTrailingGarbage"

* fixed windows failed test: "143 FAIL: worktree_test.go:367: WorktreeSuite.TestCheckoutIndexOS"

* fixed windows failed test: "296 FAIL: receive_pack_test.go:36: ReceivePackSuite.TearDownTest"

* fixed windows failed test: "152 FAIL: worktree_test.go:278: WorktreeSuite.TestCheckoutSymlink"
@mcarmonaa mcarmonaa deleted the fix/windows-support branch August 4, 2017 08:43
@mcarmonaa mcarmonaa mentioned this pull request Aug 7, 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