ninetydegrees (90d)☕ (
ninetydegrees) wrote in
dw_dev_training2012-08-23 01:49 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
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. :)
(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. :)
no subject
no subject
Edit: Aren't these are what I'm supposed to do in Git Shell and not the old system? This is very confusing.
no subject
no subject
no subject
When you were told you could keep working "the old way," that referred specifically to the patch submission process, not the update process. You are still able to submit patches through Bugzilla instead of having to create a Github pull request. But if you want to work against the very latest code, you will need to download it from the git repository.
I'm sorry if this is upsetting for you! I know it's a lot to take in and there hasn't been a lot of communication because the kinks in the process are still being worked out.
no subject
Huh, I totally missed that. I guess I have a lot of work to do before I can actually go back to coding again, then.
Was there an announcement I missed? I'm not seeing anything on
no subject
no subject
no subject
no subject
no subject
This is the easy part.
This is the part that makes no sense to me because 1) instructions are all over the place 2) it's not 100% clear to me what are the parts for hacks and what aren't 3) don't tell me where or how to do this. I feel like I'm back when I got into dev work since there were zero instructions for newbies on windows.
no subject
(I hope that doesn't come across as dismissive! I am just crap at documentation and I am happy other people are working on it who are not me.)
no subject
no subject
Pretty much all of the directions here are for Dreamhack moving over while logged in through PuTTy, but I think what is lacking is what happens AFTER that for trying to develop anything. I will make that my top documentation priority now.
no subject
Also thank you very much. I'm sorry I commented on the dw_wiki entry before I saw your comment.
no subject
Probably the first thing is to transfer over your development environment to Git. Fortunately, it is very forgiving--since you just move the old one out of the way, if it ends up messed up, or you want to go back to the old one for whatever reason, you could just move it back and everything would be okay.
We can work on improving this document as we go along:
http://wiki.dwscoalition.org/wiki/index.php/Moving_your_Dreamwidth_installation_to_use_Github
The first time you run into a question, just comment, and I or
no subject
So the the first git clone command gives me an error:
fatal: https://github.com/ninetyd/dw-free.git/info/refs not found: did you run git update-server-info on the server?
Also I used my username on github (ninetyd) as my username. Should I have used something else?
no subject
Okay, when I go to your page here:
https://github.com/ninetyd
I see that you forked dw-free and dw-nonfree a while ago, but when I try to go to the repository they link to, I get a 404:
https://github.com/ninetyd/dw-free
Is this the case for you while you are logged in? It also says that "ninetyd doesn’t have any public repositories yet".
no subject
Edit: forgot to say: I'm going to take notes to make sure I remember every step so my apologies if I'm slow to answer.
no subject
no subject
no subject
no subject
no subject
Contents of $LJHOME will be live when you start the server
Contents of $LJHOME/ext will be used automatically (no syncing)
It looks like it speaks of the same thing but I don't understand what the difference is, if there is one.
no subject
So the two are the same thing; the differences only relevant if you're comparing against the old way of doing things. Hmm, I'm not quite sure how to explain.
Maybe take out those two points and instead say:
* all code from dw-free ($LJHOME) and the additional repos under $LJHOME/ext are live. There's no need to run any additional syncing steps
no subject
no subject
no subject
I'll try to figure out some alternative wording.
no subject
I was reading over the instructions and realized that they don't have the authenticated versions of the Github URLs, so I have edited them to be like:
git clone https://USERNAME@github.com/USERNAME/dw-free.git $LJHOME
Same with nonfree.
I remember having troubles when it came to actually trying to push anything to my repository without this. I have changed the documentation to reflect the correct things. I'm pretty sure you have already cloned and everything though, but you can change it by being in $LJHOME or $LJHOME/ext/dw-nonfree and going:
git remote set-url origin NEWURL
(you are free to make me explain that some more)
no subject
Missing optional secret 'invite_img_auth': Auth code for invite code status images
Re: the URLs thing. I don't understand if I'm supposed to do something or not.
no subject
So, if you end up trying to push from your Dreamhack, and you used this URL to clone:
git clone https://github.com/USERNAME/dw-free.git $LJHOME
Instead of one that has an authentication added to it:
git clone https://USERNAME@github.com/USERNAME/dw-free.git $LJHOME
It won't know what to do to authenticate when you try and push changes back--although cloning will have worked just fine! But, you can change the URLs in dw-free and dw-nonfree without having to reclone things by using the remote set-url command:
cd $LJHOME
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-free.git $LJHOME
cd $LJHOME/ext/dw-nonfree
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-nonfree.git $LJHOME
That way, when you go to push something, it will ask you for a password and you can provide it.
no subject
fatal: No such URL found: /dreamhack/home/8174-ninetydegrees/dw
no subject
cd $LJHOME
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-free.git
cd $LJHOME/ext/dw-nonfree
git remote set-url origin https://ninetyd@github.com/ninetyd/dw-nonfree.git
no subject
no subject
I'll be lurking around in case you run into any issues; I may have to head to bed soon, but fey is around, and I will be checking in first thing in my morning!
no subject
no subject
no subject
Edit: reread your comment as the page reloaded it and I wanted to clarify something. It's no so much 'encourage' as 'welcome': discussion wherever it takes place is welcome and will get a response, even if it can take some time depending on the mode of communication. Also related, it feels like some info bypasses (edit: not the right word but at least correct grammar) official DW comms entirely, which I've always found odd, and thus preventing comments from happening there because there isn't simply anything to comment on.
NEW THREAD
I am assuming we want to work through what happens when making changes now?
Re: NEW THREAD
The git stash thing seems simple enough although I'll have questions about that later so first thing I want to know is how grab updates because that's always the first thing I do so updating dwu I guess? If so can you link the two scripts with && \?
Re: NEW THREAD
I went through the Dev Maintenance first section and changed things based on my experiences. Basically, since you should be doing your changes on their own branches, you'll need to checkout the main develop branch, and then pull from the Dreamwidth repository, then push it back to your Dreamwidth fork. If you could look at the changes I made and see if they make sense, I would much appreciate it.
Re: NEW THREAD
Re: NEW THREAD
Re: NEW THREAD
Re: NEW THREAD
Is there any difference between git pull dreamwidth and git pull because dwfree says DW but nonfree doesn't?
When I do git push... it asks me for my GH password? Is this normal? Is this going to do that every time?
Re: NEW THREAD
I've made some revisions to Dev Maintenance. They basically make this a lot less...dependent on circumstances, in my opinion? Both git pull dreamwidth and git pull had troubles coping with when I was in a different branch and it ended up making things more complicated to make instructions for.
It's normal that it's asking for your password. I'm trying to figure out how to get it to remember the password, since it's kind of annoying.
Re: NEW THREAD
Other question: when I update my DB it asks me if I want to delete all the S2 layers. Normal too?
Re: NEW THREAD
Re: NEW THREAD
Re: NEW THREAD
Re: NEW THREAD
Re: NEW THREAD
Re: NEW THREAD
On a dreamhack, type
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
Re: NEW THREAD
Re: NEW THREAD
no subject
I have also made slight changes to the moving instructions that I hope will improve them for folks new to them.
no subject
Question: do new users have to move the old hack as well or is it just for people who already had one? And what about the other instructions while I'm at it?
no subject
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!
no subject
No, I meant all the other instructions on the Moving... page but it was a stupid question because yeah of course.
GitHub Workflow
Re: GitHub Workflow
Making a pull request
Two questions:
a) Should I do that since we're supposed to be upload patches the True and Tried way (Mark's words :)?
b) If I'm not should I simply generate the diff and upload it as my patch on Zilla? Or do something else?
Re: GitHub Workflow
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 :)
Re: GitHub Workflow
One more question: my original branch didn't have a correct name so I tried to rename it using branch -m. Bad move because now what I see in PuTTY and on GH are different now. On PuTTY everything went fine; On GH it just created a new branch with the name I wanted. How do I get rid of the old branch on GH?
Re: GitHub Workflow
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
Re: GitHub Workflow
Should I do push origin after that? Because it's still there on GH (but not when I do branch -r).
Re: GitHub Workflow
What you actually want is:
git push origin --delete branchname
Re: GitHub Workflow
Re: GitHub Workflow
<333
dw-old?
Re: dw-old?
Re: dw-old?
Re: dw-old?
Re: dw-old?