Skip to content

Commit

Permalink
Clone default branch if no branch given
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Aug 27, 2013
1 parent 1c59402 commit f8fda2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pull-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ pull() {
# ARGS: $1 shortname, $2 branch
clone() {
log "CLONING" "$1"
branch="$2" || "$DEFAULT_BRANCH"
git clone -b "$2" --recursive "$1"
branch=${2:-$DEFAULT_BRANCH}
git clone -b "$branch" --recursive "$1"
}

# ARGS: $1 branch
Expand Down

0 comments on commit f8fda2e

Please sign in to comment.