Created
February 24, 2026 09:48
-
-
Save donnaken15/eb96309395b79786c7ff428dd4822e16 to your computer and use it in GitHub Desktop.
Clone Google Code Archive SVN to Git repo (CMD+MSYS+Git)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set "reponame=%~1" | |
| if [%1]==[] set /p "reponame=Repo name: " | |
| echo Downloading | |
| svnadmin create "%reponame%" && ^ | |
| curl -LSf "https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/%reponame%/repo.svndump.gz" | ^ | |
| tee "%reponame%.svndump.gz" | gzip -cd | svnadmin load "%reponame%" || del /s/q "%reponame%\*" | |
| start "" "https://code.google.com/archive/p/%reponame%/source/default/commits" | |
| echo.>"%reponame%-authors.txt" | |
| dos2unix "%reponame%-authors.txt" | |
| start "" notepad "%reponame%-authors.txt" | |
| echo Setup %reponame%-authors.txt file using the authors listed at the opened webpage. | |
| echo Continue when done. | |
| pause | |
| set "hatelinux=%CD:\=/%" | |
| set "hatelinux=%hatelinux:~3%" | |
| git svn clone --stdlayout -A "%reponame%-authors.txt" -- "file:///%CD:~0,1%/%hatelinux%/%reponame%" "%reponame%_git" | |
| :: STUPID POS BUILT ON MSYS |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source used: https://gist.github.com/yancyn/3f870ca6da4d4a5af5618fbd3ce4dd13#how-to