F-Droid Devs

125 Members
F-Droid development discussion only | Use #fdroid:f-droid.org for general, app- and repo-related matters | Meeting every Thursday at 11:30 UTC | This channel is publicly logged at https://view.matrix.org/alias/%23fdroid-dev:f-droid.org21 Servers

Load older messages


SenderMessageTime
21 Apr 2021
@freenode_jochensp:matrix.orgjochenspthough git is assuming that origin is upstream and makes some things easier if you follow that10:01:56
@freenode_izzy:matrix.org@freenode_izzy:matrix.orgorigin git@gitlab.com:IzzySoft/issuebot.git // upstream git@gitlab.com:fdroid/issuebot.git10:02:02
@freenode_izzy:matrix.org@freenode_izzy:matrix.org no, thanks – that would mean reconfiguring quite a bunch of local copies and then messing things up later when I forgot. Whenever I clone one of my repos, "origin" points there. So if I fork from fdroid and then clone that fork… voila. 10:03:22
@freenode_izzy:matrix.org@freenode_izzy:matrix.orgThat would just result in a mess.10:03:41
@freenode_jochensp:matrix.orgjochenspthen just adopt the names whenever you read documentation, it is just names after all :)10:04:17
@freenode_izzy:matrix.org@freenode_izzy:matrix.orgYupp, just putting your hints to my cheat-sheet now while adapting them.10:06:39
@freenode_izzy:matrix.org@freenode_izzy:matrix.org Just wondering: if you say "origin" is always "upstream", what is "upstream" then? Always a specific name of that repo's owner? 10:07:28
@freenode_jochensp:matrix.orgjochenspnot sure I get you10:08:47
@freenode_jochensp:matrix.orgjochenspI have origian = where the software is maintained, released and MRs/PRs go to10:09:26
@freenode_jochensp:matrix.orgjochensp*origin10:09:31
@freenode_izzy:matrix.org@freenode_izzy:matrix.org See? That gets confusing. You wouldn't have "upstream" then (as that's "origin" for you) but a name for your own forks… 10:09:40
@freenode_jochensp:matrix.orgjochensp I don't need upstream 10:09:54
@freenode_jochensp:matrix.orgjochenspI have a number of forks as the repos owner10:10:06
@freenode_jochensp:matrix.orgjochenspso git remote lists origin, jspricke, izzy...10:10:34
@freenode_izzy:matrix.org@freenode_izzy:matrix.org Because that's what you call "origin". What does "git remote" give for your issuebot copy? 10:10:36
@freenode_jochensp:matrix.orgjochenspthat ^10:10:43
@freenode_izzy:matrix.org@freenode_izzy:matrix.orgAh. That I meant.10:10:44
@freenode_izzy:matrix.org@freenode_izzy:matrix.org Different strategy. When I started with Git, the references I had used "origin" (as that's what a clone always names it) and "upstream". So switching would mean complete rethinking for me ;) 10:12:09
@freenode_jochensp:matrix.orgjochenspshrug10:12:20
@freenode_jochensp:matrix.orgjochensp(I switched a number of times when I started with git and than found that git has some shortcuts if you use it as I proposed)10:13:06
@freenode_izzy:matrix.org@freenode_izzy:matrix.org So your "git push --force-with-lease fork origin/master:master" would take the "HEAD" of origin/master and push that to your fork at e.g. GitLab, right? 10:13:14
@freenode_jochensp:matrix.orgjochenspyes10:13:29
@freenode_izzy:matrix.org@freenode_izzy:matrix.org (if it's proposed that "origin" should point to "upstream" I'm confused why it isn't done that way when I clone my fork ;) 10:14:12
@freenode_izzy:matrix.org@freenode_izzy:matrix.orgthanks!10:14:15
@freenode_jochensp:matrix.orgjochensp how should git now that you didn't clone the upstream first? ;) 10:15:05
@eighthave:matrix.org_hc I've never heard of --force-with-lease fork, there are so many optinos in git, its crazy sometimes 10:23:23
@eighthave:matrix.org_hc I guess its a safer --force 10:24:20
@freenode_jochensp:matrix.orgjochenspyeah, https://blog.developer.atlassian.com/force-with-lease/10:25:00
@eighthave:matrix.org_hchuh, that's for a workflow I don't know, where multiple people are force pushing to a repo. I never force push to shared repos, only to my forks10:33:07
@eighthave:matrix.org_hcI guess that's for shared dev branches in a single git repo10:34:17

Show newer messages


Back to Room ListRoom Version: 1