Created
November 19, 2008 02:57
-
-
Save choonkeat/26394 to your computer and use it in GitHub Desktop.
add-gitproj-as-rails-plugin
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 | |
PROJECT=$1 | |
GITPATH=$2 | |
if test -z "$PROJECT" || test -z "$GITPATH" | |
then | |
echo Usage: $0 project gitpath | |
exit 1 | |
fi | |
git remote add -f $PROJECT $GITPATH | |
git merge -s ours --no-commit $PROJECT/master | |
git read-tree --prefix=vendor/plugins/$PROJECT -u $PROJECT/master | |
git commit -m "Merge $PROJECT" | |
git pull -s subtree $PROJECT master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment