| ... | ... |
@@ -297,6 +297,12 @@ function git_clone {
|
| 297 | 297 |
cd $2 |
| 298 | 298 |
# This checkout syntax works for both branches and tags |
| 299 | 299 |
git checkout $3 |
| 300 |
+ elif [[ "$RECLONE" == "yes" ]]; then |
|
| 301 |
+ cd $2 |
|
| 302 |
+ git remote set-url origin $1 |
|
| 303 |
+ git fetch origin |
|
| 304 |
+ git branch -D $3 |
|
| 305 |
+ git checkout $3 |
|
| 300 | 306 |
fi |
| 301 | 307 |
} |
| 302 | 308 |
|