who is maintaining SVN?
goal:
but https://svn.freebsd.org/base/stable/ stops at:
yeah i could get the code with
i ask who is maintaining it to ask if they could do something like
and if you want to set this up to be automated with a rolling head master/main that would be even more cool
something like sync_git_to_svn.sh
goal:
Bash:
svn checkout https://svn.freebsd.org/base/stable/14 /usr/src
but https://svn.freebsd.org/base/stable/ stops at:
yeah i could get the code with
Bash:
git clone https://git.freebsd.org/src.git /usr/src
cd /usr/src
git checkout stable/13
git clone https://git.freebsd.org/src.git /usr/src
cd /usr/src
git checkout stable/14
i ask who is maintaining it to ask if they could do something like
Bash:
git svn init --prefix=svn/ https://svn.freebsd.org/base
git svn fetch
git checkout -b stable/13 origin/stable/13
git svn dcommit
git svn init --prefix=svn/ https://svn.freebsd.org/base
git svn fetch
git checkout -b stable/14 origin/stable/14
git svn dcommit
and if you want to set this up to be automated with a rolling head master/main that would be even more cool
something like sync_git_to_svn.sh
Bash:
#!/bin/bash
# Define the directory where the Git repository is cloned
GIT_REPO_PATH="/path/to/local/git-repo"
# Navigate to the Git repository
cd $GIT_REPO_PATH || exit
# Fetch the latest changes from the Git repository
git fetch origin
# Checkout the main branch and pull the latest changes
git checkout main
git pull origin main
# Rebase the SVN repository and commit the changes
git svn rebase
git svn dcommit
# Log the update time
echo "Sync completed at $(date)" >> /path/to/log/sync_log.txt
Bash:
chmod +x /path/to/sync_git_to_svn.sh
(crontab -l; echo "0 0 * * * /path/to/sync_git_to_svn.sh") | crontab -