From d9447ce7a1ca9be3caff14cd2c12f6deee21938f Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 2 Jun 2022 18:15:53 -0400 Subject: [PATCH] tools: Move git-related scripts into 'git' dir --- tools/{ => git}/git-save.py | 0 .../git-switch-linux.cmd} | 32 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) rename tools/{ => git}/git-save.py (100%) rename tools/{git_switch_linux.cmd => git/git-switch-linux.cmd} (96%) diff --git a/tools/git-save.py b/tools/git/git-save.py similarity index 100% rename from tools/git-save.py rename to tools/git/git-save.py diff --git a/tools/git_switch_linux.cmd b/tools/git/git-switch-linux.cmd similarity index 96% rename from tools/git_switch_linux.cmd rename to tools/git/git-switch-linux.cmd index d63f38c8b..af26c7013 100644 --- a/tools/git_switch_linux.cmd +++ b/tools/git/git-switch-linux.cmd @@ -1,16 +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 - +@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 +