Important: Update to "dwu"
If you use the "dwu" script from the wiki, you will need to update your local copy. I've made some changes because the last version of the script would merge changes from both develop and master, leading to broken environments and GitHub repositories.
http://wiki.dwscoalition.org/wiki/index.php/Dev_Maintenance#dwu_-_Updating_the_repos
Please use the updated script.
If you have gotten yourself into a broken state, let me know and I can walk you through fixing it. There is some force pushing involved, sadly.
http://wiki.dwscoalition.org/wiki/index.php/Dev_Maintenance#dwu_-_Updating_the_repos
Please use the updated script.
If you have gotten yourself into a broken state, let me know and I can walk you through fixing it. There is some force pushing involved, sadly.

no subject
I've been using the commands in the old dwu script but I'm not sure how I'd be able to tell if anything's broken.
At the moment I don't actually have any unpushed changes coded, so if blowing everything away locally would be easier that actually figuring out if it's broken I'd be happy to do that too :)
Cheers,
r
no subject
no subject
I was getting irritated at always ending up on the master branch after running it. So I put
oldbranch=$(git symbolic-ref --short -q HEAD)
before each pull & push section, and
git checkout $oldbranch
after.
It seems to work for me, but I haven't updated the wiki because I suck at git and at bash scripting, and I don't want to break other peoples' hacks! In particular, it will probably do weird things if either repo has a detached HEAD.
If anybody who does know what they're doing with bash would like to refine this to do it properly, I'd be most grateful :-)