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

plumbing: use LookPath instead of Stat to fix Windows executables #554

Merged
merged 1 commit into from
Aug 28, 2017

Conversation

strib
Copy link
Contributor

@strib strib commented Aug 22, 2017

When git-core isn't in the user's PATH, we need to use LookPath to
verify the existence of the executable, rather than os.Stat, so that
on Windows it will search for files with executable suffixes.

@strib strib force-pushed the strib/fix-win-cmd-lookup branch from 3eec53c to af328df Compare August 27, 2017 23:59
When git-core isn't in the user's PATH, we need to use `LookPath` to
verify the existence of the executable, rather than `os.Stat`, so that
on Windows it will search for files with executable suffixes.
@strib strib force-pushed the strib/fix-win-cmd-lookup branch from af328df to aad08e6 Compare August 28, 2017 00:25
@codecov
Copy link

codecov bot commented Aug 28, 2017

Codecov Report

Merging #554 into master will decrease coverage by 0.59%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #554     +/-   ##
========================================
- Coverage      78%   77.4%   -0.6%     
========================================
  Files         129     129             
  Lines        9842    9842             
========================================
- Hits         7677    7618     -59     
- Misses       1327    1399     +72     
+ Partials      838     825     -13
Impacted Files Coverage Δ
plumbing/transport/file/client.go 81.69% <100%> (ø) ⬆️
plumbing/transport/ssh/common.go 20.54% <0%> (-45.21%) ⬇️
plumbing/transport/ssh/auth_method.go 31.57% <0%> (-22.81%) ⬇️

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 631a45f...aad08e6. Read the comment docs.

@strib
Copy link
Contributor Author

strib commented Aug 28, 2017

@mcuadros @erizocosmico this is ready for review/merge too, if you get the chance. The file transport protocol is currently broken on Windows without this.

@mcuadros mcuadros merged commit bff1d06 into src-d:master Aug 28, 2017
@strib strib deleted the strib/fix-win-cmd-lookup branch August 28, 2017 16:59
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.

2 participants