ethanmoffat / etheos

[Eth]an's [E]ndless [O]nline [S]erver - fork of eoserv project
zlib License
13 stars 8 forks source link

Mirror with history #1

Closed iandinwoodie closed 4 years ago

iandinwoodie commented 4 years ago

@ethanmoffat here is what I’ve run to create and maintain a mirror of the eoserv source with a full commit history:

#!/usr/bin/env bash

function main()
{
  local svn_url="svn://svn.eoserv.net/eoserv"
  grep -r svn-remote .git/config &> /dev/null \
    || git svn init -s "${svn_url}"

  git svn fetch \
    && git svn rebase
}

main "$@"
ethanmoffat commented 4 years ago

I pulled over the full commit history as well as branches/tags from svn.eoserv.net. I can imagine a script like this coming in handy as part of a CI process in the future, so that we automatically integrate changes from the svn upstream into trunk branch and merge them into master.