fixes anthony's comment about not working if you aren't switching branches
This commit is contained in:
parent
aa8bb244be
commit
64c2ba225a
1 changed files with 2 additions and 1 deletions
3
stack.sh
3
stack.sh
|
@ -301,8 +301,9 @@ function git_clone {
|
||||||
cd $2
|
cd $2
|
||||||
git remote set-url origin $1
|
git remote set-url origin $1
|
||||||
git fetch origin
|
git fetch origin
|
||||||
|
git checkout origin/$3
|
||||||
git branch -D $3
|
git branch -D $3
|
||||||
git checkout $3
|
git checkout -b $3
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue