Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'feature/specify_branch_during_install' into blove

  • Loading branch information...
commit 1aba2eb80acdd6dda695c74f1c95d42bcd643c9a 2 parents a669567 + 13a2cd2
Ben Loveridge authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 contrib/gitflow-installer.sh
15 contrib/gitflow-installer.sh
View
@@ -17,7 +17,11 @@ if [ -z "$REPO_NAME" ] ; then
fi
if [ -z "$REPO_HOME" ] ; then
- REPO_HOME="http://github.com/nvie/gitflow.git"
+ REPO_HOME="http://github.com/bloveridge/gitflow.git"
+fi
+
+if [ -z "$BRANCH" ] ; then
+ BRANCH="blove"
fi
EXEC_FILES="git-flow"
@@ -56,6 +60,15 @@ case "$1" in
echo "Cloning repo from GitHub to $REPO_NAME"
git clone "$REPO_HOME" "$REPO_NAME"
fi
+
+ if [ -n "$BRANCH" ] ; then
+ echo "switching to branch $BRANCH"
+ lastcwd=$PWD
+ cd "$REPO_NAME"
+ git checkout "$BRANCH"
+ cd "$lastcwd"
+ fi
+
if [ -f "$REPO_NAME/$SUBMODULE_FILE" ] ; then
echo "Submodules look up to date"
else
Please sign in to comment.
Something went wrong with that request. Please try again.