Skip to content

Commit

Permalink
Merge pull request #2 from martynovs/master
Browse files Browse the repository at this point in the history
some updates
  • Loading branch information
martynovs committed Dec 16, 2014
2 parents e5d8666 + 6692480 commit 942b389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 3 additions & 3 deletions git/util
Expand Up @@ -52,12 +52,12 @@ function clone_repository {
dir=`basename $repo .git`

step "Clone repository: $TIP$repo"
git clone --depth=1 $repo || exit 1
git clone --depth=$checkout_depth $repo || exit 1

cd $dir > /dev/null || exit 1

step "Init and update$TIP submodules"
git submodule update --init --recursive --depth=1 || exit 1
git submodule update --init --recursive --depth=$checkout_depth || exit 1
}

function switch_to_branch {
Expand All @@ -82,7 +82,7 @@ function pull_changes {
git checkout master || exit 1

step "Pulling$TIP latest changes$HL from $master origin"
git pull --depth=$checkout_depth || exit 1
git pull || exit 1

step "Update$TIP submodules"
git submodule update --init --recursive --depth=$checkout_depth || exit 1
Expand Down
9 changes: 1 addition & 8 deletions profile
@@ -1,12 +1,5 @@
DIR="$( dirname "${BASH_SOURCE[0]}" )"
DIR="$( cd -P "$( dirname "$0" )" && pwd )"

export PATH=$PATH:$DIR/git

source $DIR/git/profile

# Bash completion setup
if [ `type -p brew` ]; then
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
fi

0 comments on commit 942b389

Please sign in to comment.