Commit c6ca8ab6 by Victor Shnayder

Update dev script repos

* remove hg data repo
* pull the 6.002x repo
parent 2eaa6dbc
...@@ -82,19 +82,20 @@ clone_repos() { ...@@ -82,19 +82,20 @@ clone_repos() {
fi fi
git clone git@github.com:MITx/askbot-devel >>$LOG git clone git@github.com:MITx/askbot-devel >>$LOG
fi fi
# By default, dev environments start with a copy of 6.002x
cd "$BASE" cd "$BASE"
if [[ -d "$BASE/data/.hg" ]]; then REPO="content-mit-6002x"
output "Pulling data" if [[ -d "$BASE/data/$REPO/.git" ]]; then
cd "$BASE/data" output "Pulling $REPO"
hg pull >>$LOG cd "$BASE/data/$REPO"
hg update >>$LOG git pull >>$LOG
else else
output "Cloning data" output "Cloning $REPO"
if [[ -d "$BASE/data" ]]; then if [[ -d "$BASE/data/$REPO" ]]; then
mv "$BASE/data" "${BASE}/data.bak.$$" mv "$BASE/data/$REPO" "${BASE}/data/$REPO.bak.$$"
fi fi
hg clone ssh://hg-content@gp.mitx.mit.edu/data >>$LOG git clone git@github.com:MITx/$REPO >>$LOG
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment