-
-
Save kowey/2da7ead670c28787c080 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
pushd $(dirname $0) > /dev/null | |
SCRIPT_DIR=$PWD | |
REPO=$(basename $SCRIPT_DIR) | |
popd > /dev/null | |
cd $SCRIPT_DIR | |
# should maybe have made this ${REPO}/.branches | |
BRANCHES_DIR=../${REPO}-branches | |
darcs push $BRANCHES_DIR/${REPO}_bridge/$REPO -a | |
darcs-fastconvert sync $BRANCHES_DIR/${REPO}_bridge git | |
cd $BRANCHES_DIR/${REPO}_git | |
git pull | |
git push github master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment