Closed kuh3h3 closed 8 years ago
Bash is required for version.sh.
closed this issue ? maybe you thought that is so simple? i installed MSYS and added sysetm path and MSYS PATH in update_rev.bat SET "MSYS=D:\MSYS" SET PATH=%MSYS%\bin;%PATH%
so update_rev.bat could run bash and could run version.sh on vs 2015 command prompt.
you mean i have to go first Msys bash? then if go to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC, and run vcvarsall.bat?
that not work at all.
Sorry, if you want to learn how to handle PATH in scripts, this is certainly not my job.
If you want to submit a PR to get rid of the MSYS requirement, go ahead.
This is an old solution I used when I switched to Git from SVN. I never got the time or the interest to change this since it works for me.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>d: D:>cd note* D:\notepad2-mod>git --version git version 2.8.2.windows.1
D:\notepad2-mod>git pull Already up-to-date. D:\notepad2-mod>update_rev fatal: Invalid revision range 0cd53aab71b006820233224bbf14c2b18b2caca6..HEAD On branch: master Hash: 5e7c586 Revision: 760 (Local modifications found)
D:\notepad2-mod>bash version.sh fatal: Invalid revision range 0cd53aab71b006820233224bbf14c2b18b2caca6..HEAD On branch: master Hash: 5e7c586 Revision: 760 (Local modifications found)
D:\notepad2-mod>git symbolic-ref -q HEAD refs/heads/master
D:\notepad2-mod>git merge-base master HEAD 5e7c5866ec65a195e2c6648ec01769c29c14f8fc
D:\notepad2-mod>git rev-list --count 0cd53aab71b006820233224bbf14c2b18b2caca6..5e7c5866ec65a195e2c6648ec01769c29c14f8fc fatal: Invalid revision range 0cd53aab71b006820233224bbf14c2b18b2caca6..5e7c5866ec65a195e2c6648ec01769c29c14f8fc
D:\notepad2-mod>git rev-list --count 0cd53aab71b006820233224bbf14c2b18b2caca6..HEAD fatal: Invalid revision range 0cd53aab71b006820233224bbf14c2b18b2caca6..HEAD
D:\notepad2-mod>git rev-parse --short HEAD 5e7c586
sorry. my problem is clone depth. git clone --depth 1 caused all this error. after full clone, all is ok
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>d:
D:>cd note*
D:\notepad2-mod>dir D 드라이브의 볼륨: data 볼륨 일련 번호: 54EC-8AD5
D:\notepad2-mod 디렉터리
2016-05-19 오전 06:02
D:\notepad2-mod>update_rev fatal: Invalid revision range 0cd53aab71b006820233224bbf14c2b18b2caca6..HEAD On branch: master Hash: 5e7c586 Revision: 760 (Local modifications found)
D:\notepad2-mod>git log commit 5e7c5866ec65a195e2c6648ec01769c29c14f8fc Author: XhmikosR xhmikosr@gmail.com Date: Tue May 3 19:25:03 2016 +0300
D:\notepad2-mod>