ninetydegrees: Photo: bingo chips (bingo)
ninetydegrees (90d)☕ ([personal profile] ninetydegrees) wrote in [site community profile] dw_dev_training2012-08-23 01:49 pm

Fetching updates on Dreamhack?

How does one update their repos on their hack now? The 'old' script no longer pulls anything for me (what used to be on http://wiki.dwscoalition.org/wiki/index.php/Dev_Maintenance) and I don't understand how I can keep up with changes. :/

(Context: I'm on Windows; I use PuTTY and WinSCP).

Edit: ok, if anybody else wonders, short answer is you can no longer update your hack using old methods. :/

Edit 2: long answer is you can switch to the new system. See comments for detailed instructions. :)
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (thoughtful)

[personal profile] foxfirefey 2012-08-24 07:20 pm (UTC)(link)
So basically, dw-nonfree is a different repository, and updating it is a separate process from dw-free. If you feel it's better, I can work it into the above, but it's awkward because there might be cases where somebody is working for, say, their clone site and then they don't have dw-nonfree, and we've had people making clone sites start using dw-nonfree before which is awkward.

New users still have to move the old hack--I think Sophie has not yet made a new process for setting up. (It's tricky because of all the account stuff that goes on with Github now.)

I'm assuming by other instructions you mean flow stuff like making a branch, committing changes to it, pushing them up to Github and making a pull request, yes? Because we can make them right now!
foxfirefey: A wee rat holds a paw to its mouth. Oh, the shock! (myword)

Re: NEW THREAD

[personal profile] foxfirefey 2012-08-24 07:23 pm (UTC)(link)
That's kind of strange then. I haven't had that happen and I'm a bit confused as to why it is popping up for you. And the files exist for those styles?
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 01:52 pm (UTC)(link)
Yes, make a pull request definitely.

I think that Mark was making a joke about the True and Tried way (or maybe saying that we wouldn't be getting rid of that just yet? I don't remember the context in which he said it)

So yup just make a pull request :)
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 02:10 pm (UTC)(link)
Okay try this:

git branch -r -d origin/OLDBRANCHNAME

Note: the origin is part of it and (probably) shouldn't be changed.

If you want to get a list of all your remote branches to be really sure, do this:

git branch -r
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 02:27 pm (UTC)(link)
Oops I gave some wrong info. What I gave you will have made your repository forget about that branch that's on github.

What you actually want is:

git push origin --delete branchname
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: GitHub Workflow

[personal profile] fu 2012-08-25 02:35 pm (UTC)(link)
\o/!

<333
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

Re: dw-old?

[personal profile] fu 2012-08-29 10:59 am (UTC)(link)
Nope; only need it if you have patches you haven't transferred over.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: dw-old?

[staff profile] denise 2012-08-29 11:12 am (UTC)(link)
To add on to what Fu said, though: we're not hurting for space, so i'd leave it for at least a month or so to make sure there's nothing you forgot.

Re: NEW THREAD

[personal profile] swaldman 2012-09-01 08:46 am (UTC)(link)
I don't know if you can git to remember the password for ever, but you can definitely make it remember it for 15 minutes so that you don't have to type it more than that often.

On a dreamhack, type
git config --global credential.helper=cache


I have suggested that this be made a system-wide default on dreamhacks, along with some stuff like putting some outputs into colour.

Re: NEW THREAD

[personal profile] swaldman 2012-09-01 12:28 pm (UTC)(link)
ah - actually, that was me :-)

Page 3 of 3