Closed IceNature closed 4 years ago
same as #876, fails since https://github.com/junegunn/vim-plug/commit/226d6abeb2f02bcd8f5b11288543259fa2e02962.
same as #876, fails since 226d6ab.
I think they may be different problems. #876 is caused by powershell, but here I use cmd
@IceNature Do you have custom shell settings for cmd.exe?
@janlazo No, but you remind me that I am using the Git in MSYS2 with a batch wrapper to make it run conveniently under cmd.
@ECHO OFF
setlocal enableextensions enabledelayedexpansion
SET MSYS2=%~dp0%..\usr\bin
FOR %%i IN ("git.exe") DO SET GIT=%%~$PATH:i
IF NOT EXIST "%GIT%" (
SET "PATH=%MSYS2%;%PATH%"
)
if "%1" equ "rev-parse" goto rev_parse
git.exe %*
goto :END_LOCAL
:rev_parse
for /f "delims=" %%1 in ('git.exe %*') do cygpath -w "%%1"
:END_LOCAL
endlocal
@ECHO ON
I tried to run
:echo system('git rev-parse --abbrev-ref HEAD 2>&1 && git config -f .git/config remote.origin.url')
in a git repo or
run the temp file created by vim-plug in my temp directory directly with cmd /c
. Both of them work correctly. It returns two line, one is master
, the other is the URI
But if I use the system()
to run the temp batch file, just as s:system()
in plug.vim
do, it only returns one line, and I do not know why the second line is missing
The command
:PlugUpdate
showes error message 'Invalid URI: master` for every pluginsI tried
:PlugClean
and then:PlugInstall
, vim-plug deleted and reinstalled all plugins correctly without any error. But after that,:PlugUpdate
still showed the same error as above. I do not set any global options of vim-plug in my vimrc. This happens in both GVim 8.1 2102 and NeoVim 0.4.2 with Python 3.7.3 64bit on Windows 10 1903 x64 18362.418 I use Git version 2.23.0. The commandreturns, for example,