tools: Move git-related scripts into 'git' dir

This commit is contained in:
John Colvin committed 2022-07-01 18:06:22 -05:00
1 parent aca6988a76
commit d9447ce7a1
2 files changed
+16 -16

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
@echo off
@setlocal
SETLOCAL
if "%SPARKVM_PORT%"=="" set SPARKVM_PORT=22
if "%1" == "" (
for /F "tokens=2" %%m in ('git branch --points-at head') do set branch=%%m
) else (
set branch=%1
)
echo.
echo branch=%branch%
ssh bts@sparkvm -p %SPARKVM_PORT% -o StrictHostKeyChecking=no -t "cd /home/bts/spark ; git reset --hard ; git clean -fd ; git checkout %branch% ; git pull ; git submodule update"
ENDLOCAL
goto :eof