mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-05 11:25:09 -05:00
More fiddling with the SSH keys.
This commit is contained in:
@@ -4,11 +4,9 @@
|
||||
USER=coolprop
|
||||
source /home/$USER/.bash_profile
|
||||
#
|
||||
SFPASS="/home/$USER/etc_opt/id_jorritw"
|
||||
#
|
||||
FOLDER="/home/$USER/src/CoolProp.git"
|
||||
ORIGIN="https://github.com/CoolProp/CoolProp.git"
|
||||
MIRROR="ssh://jorritw@git.code.sf.net/p/coolprop/git"
|
||||
MIRROR="ssh://git.code.sf.net-jorritw/p/coolprop/git"
|
||||
#
|
||||
if [ ! -d $FOLDER ]; then # repo does not exist, clone it
|
||||
BASEFOLDER=${FOLDER%/*}
|
||||
@@ -21,11 +19,8 @@ if [ ! -d $FOLDER ]; then # repo does not exist, clone it
|
||||
#popd
|
||||
popd
|
||||
fi
|
||||
echo "Preparing the ssh key for SourceForge"
|
||||
eval $(ssh-agent) # Make sure ssh-agent is running
|
||||
ssh-add "$SFPASS"
|
||||
pushd $FOLDER
|
||||
#git push --force --mirror
|
||||
git push --mirror $MIRROR
|
||||
git fetch $ORIGIN
|
||||
git push --force --mirror $MIRROR
|
||||
popd
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user