Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
In update_site.py, swap git pull origin master for `git reset --har…
Browse files Browse the repository at this point in the history
…d` in vendor lib
  • Loading branch information
lmorchard committed Sep 2, 2011
1 parent 53d82bd commit 2786a9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/update_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

RM_SETTINGS_PYC = "rm -f settings*.pyc"
GIT_PULL = "git pull -q origin %(branch)s"
GIT_RESET_HARD = "git reset --hard"
GIT_SUBMODULE_SYNC = "git submodule sync"
GIT_SUBMODULE_UPDATE = "git submodule update --init -q"
SVN_REVERT = "svn revert -R ."
Expand Down Expand Up @@ -79,7 +80,10 @@ def update_site(env, debug):

commands += [
(CHDIR, os.path.join(here, 'vendor')),
(EXEC, GIT_PULL % vendor_branch),
# This seems like a bad idea - it pulls from master, while the web app
# itself has a submodule pointing at a specific vendor-lib commit ID
# (EXEC, GIT_PULL % vendor_branch),
(EXEC, GIT_RESET_HARD),
(EXEC, GIT_SUBMODULE_SYNC),
(EXEC, GIT_SUBMODULE_UPDATE),
(CHDIR, os.path.join(here)),
Expand Down

0 comments on commit 2786a9d

Please sign in to comment.