Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

1.3.16-pre: 1.3.15 Fixes#2339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
daxgames merged 19 commits intocmderdev:masterfromdaxgames:fix_global_vars_vscode_err
Jul 29, 2020

Conversation

@daxgames
Copy link
Member

@daxgamesdaxgames commentedJun 27, 2020
edited
Loading

Fixes

Adds

@daxgamesdaxgames changed the titlefix vscode terminal errors when setting cmder fast_init=1 outside cmder1.3.16-pre: 1.3.15 FixesJun 29, 2020
Copy link

@JackenmenJackenmen left a comment

Choose a reason for hiding this comment

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

Sooo, thevendor/init.bat in thecmder_mini.zip artifact is not using the version from this PR for some reason 🤔
I updated it manually however, and the error is gone.

I do have one review comment though.

Comment on lines 204 to 211
ifnotdefined GIT_INSTALL_ROOT (
:: get the absolute path to the user provided git binary
%lib_git%is_git_shim"%%~dpF"
%lib_git%get_user_git_version
%lib_git% compare_git_versions

ifdefined GIT_INSTALL_ROOT (
goto :FOUND_GIT
goto :FOUND_GIT
)

Choose a reason for hiding this comment

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

This makes the script always go toFOUND_GIT which does not seem intended, e.g.%lib_git% compare_git_versions does not defineGIT_INSTALL_ROOT when the checked git is older than the vendored git.

So this should probably be checked at the end of each iteration instead:

Suggested change
ifnotdefined GIT_INSTALL_ROOT (
:: get the absolute path to the user provided git binary
%lib_git% is_git_shim"%%~dpF"
%lib_git% get_user_git_version
%lib_git% compare_git_versions
ifdefined GIT_INSTALL_ROOT (
goto :FOUND_GIT
goto :FOUND_GIT
)
:: get the absolute path to the user provided git binary
%lib_git% is_git_shim"%%~dpF"
%lib_git% get_user_git_version
%lib_git% compare_git_versions
ifdefined GIT_INSTALL_ROOT (
goto :FOUND_GIT
)

@daxgames
Copy link
MemberAuthor

@jack1142 you are correct. Fixed

@daxgames
Copy link
MemberAuthor

Copy link

@JackenmenJackenmen left a comment

Choose a reason for hiding this comment

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

Works for me and code looks fine (with the low knowledge of batch I have at least) 👍
I don't think theif not defined GIT_INSTALL_ROOT is needed but it's not gonna break anything so it's just nitpicking :P

@daxgames
Copy link
MemberAuthor

I need to look at one other thing and when I do I will merge this in.

if"%CMDER_CONFIGURED%"gtr1goto CMDER_CONFIGURED

:: See vendor\git-for-windows\README.portable for why we do this
:: A

Choose a reason for hiding this comment

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

?

@daxgamesdaxgames merged commit906bb5d intocmderdev:masterJul 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@selimbselimbselimb requested changes

@JackenmenJackenmenJackenmen approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@daxgames@Jackenmen@selimb

[8]ページ先頭

©2009-2025 Movatter.jp