| 2009-06-21 |
|
fynn
| interesting, thought tbh I'm not sure what you mean :) | 00:00 |
|
robinr
| tomoj: yes, but most people assume we can prove things with math | 00:00 |
|
fynn
| I don't know enough about medicine. | 00:00 |
|
robinr
| but that is based on axioms that are true, but if they aren't we're lost | 00:00 |
|
tomoj
| robinr: prove things about what? the real world? the proof is still valid even if the axioms don't hold | 00:00 |
|
fynn
| btw, about the alpth_1 / beth_1 thing, it's not a problem: it's well known that certain theorems would be true under axiom set A, and false under axiom set B | 00:00 |
|
Ilari
| fynn: Also probably some stuff related to education. | 00:00 |
|
fynn
| "education" is a social science, so it's not really a science at all :) | 00:01 |
|
| basically, there has to be a huge, outrageous conspiracy of very strong forces to keep any real science in category 4. | 00:01 |
|
robinr
| tomoj: the proof in mathematical sence, but not in relation to the world around us | 00:01 |
|
| for which we use math | 00:01 |
|
fynn
| tomoj: the proof in mathematics stay in mathematics. | 00:02 |
|
| err, for robinr | 00:02 |
|
robinr
| yea, :) | 00:02 |
|
fynn
| the fact that there is this curious correspondence between mathematical proofs and the real world is of no importance or relevance for math itself. | 00:02 |
|
Ilari
| fynn: If there is lots of money riding in the wrong interpretation, such conspiracies _CAN_ exist. | 00:02 |
|
fynn
| thus, it can never be a mathematical problem if a mathematical concept applies or not to the "real world" (whatever that is) | 00:03 |
|
| Ilari: feel free to PM what exactly you mean :) | 00:03 |
|
tomoj
| my logic professor told us he worries that the real numbers don't exist. I rofled | 00:03 |
| cpg|biab → cpg | 00:03 |
|
fynn
| tomoj: dude, you're obliterating my respect for UAT | 00:03 |
|
robinr
| tomoj: isn't he right? numbers are human constructions | 00:04 |
|
fynn
| Ilari: you seem to hint at something, but I have no idea what it is. | 00:04 |
|
| robinr: so we constructed them, so how can they not exist? | 00:04 |
|
robinr
| but those aren't "real" | 00:05 |
|
tomoj
| fynn: you can be a competent logician and a realist at the same time | 00:05 |
|
fynn
| that's like saying "I'm thinking of 2, but now I am concerned that my thought may not exist" | 00:05 |
| ← __iron left | 00:06 |
|
Ilari
| fynn: That would imply that either 1 wouldn't exist or addition of integers wouldn't exist. | 00:06 |
|
| :-) | 00:06 |
|
fynn
| tomoj: he's a logician, hence he's teaching in the Philosophy department, in a math-related field, yet holds such naive beliefs that any first year philosophy of math course would revise? | 00:06 |
| → __iron joined | 00:07 |
|
robinr
| Asimov wrote a short story on a professor that though mathematicians were mysticist, because they believe in imaginary numbers | 00:07 |
|
tomoj
| fynn: I'm sure his philosophical views are more nuanced, he was sort of just joking with us and going into detail would've been out of the scope of the class | 00:07 |
|
fynn
| robinr: funnily enough, the origins of math have relations with mysticism; cf Pythagoras. | 00:07 |
| ← sunoano left | 00:08 |
|
robinr
| yes, and gambling | 00:08 |
| ← Inthewings left | 00:08 |
|
fynn
| and destroying greek ships with huge cranes! | 00:08 |
|
| in ancient Greece, mathematicians would be adored by women, second only to the adoration of git experts. | 00:09 |
|
| hence the common phrase: "getting laid like a gitster". | 00:10 |
| ← bx2 left | 00:10 |
|
Ilari
| One way to express converse of continum hypothesis is: Is there set thats strictly bigger than integers but strictly smaller than reals? | 00:10 |
|
robinr
| how would that help me get some sleep? | 00:11 |
|
fynn
| Ilari: hm, how can that be, seeing that the set of reals is a superset of the set of integers? | 00:11 |
|
Ilari
| Continum hypothesis says no, there isn't. But adding axiom of symetry to ZFC yields that there is such set. | 00:12 |
| → sunoano joined | 00:12 |
| → melvinram joined | 00:12 |
|
| fynn 's brain asplodes | 00:12 |
|
fynn
| my personal way to deal with math is to limit my interest to its computer-science aspects. | 00:12 |
|
| the wonderful thing about computers, apropos our discussion, is that they are both math and real world. | 00:13 |
|
bremner
| fynn: my personal way to deal with computer science is to limit my interest to its math aspects :-) | 00:13 |
| → demio joined | 00:13 |
|
fynn
| they are an aspect of the real world which is a closed system, governed by axioms. | 00:14 |
|
| bremner: then a Venn diagram would clearly show that we are both interested in the exact same things ;) | 00:14 |
|
| bremner: p.s., what do you study / do? | 00:15 |
|
Ilari
| In ZFC, one can't prove that such set exists and one can't prove that such set doesn't exist. | 00:15 |
| ← plediii_ left | 00:15 |
|
| robinr Zzzz | 00:16 |
|
tomoj
| I find this one more brain asploding: in ZFC, you can prove that there is an uncountable set, yet there are countable models of ZFC. | 00:16 |
| → sakyamuni joined | 00:16 |
|
Ilari
| Another way to express continium hypothesis: The size of smallest uncountable set is size of the set of reals. | 00:18 |
|
bremner
| fynn: theoretical CS | 00:18 |
|
Ilari
| Interestingly, size of reals is 2 to power of size of integers. | 00:19 |
|
fynn
| there's a proof of that?! | 00:19 |
| ← memiux left | 00:20 |
|
klbate
| For some definition of "power". | 00:20 |
| ← aspotashev|eeepc left | 00:23 |
| → cemerick joined | 00:24 |
|
Ilari
| That impiles that powerset of integers and set of reals are isomorphic (there are functions that can map arbitiary real to subset of integers and arbitiary subset of integers to real number). | 00:24 |
| → aspotashev|eeepc joined | 00:24 |
|
fynn
| tomoj: "you'd only need to do that if you wanted to push foo changes and your local master commits at the same time" - yeah, the emerging insight is that it's actually *better* if foo works directly against origin/master. | 00:24 |
|
tomoj
| fynn: foo pushes to origin? | 00:25 |
|
fynn
| tomoj: pulling it with a --rebase, pushing back to it so it FF's the new foo commits. | 00:25 |
|
tomoj
| wow that's bizarre | 00:25 |
|
| Ilari: isomorphic? really? | 00:25 |
|
fynn
| yup, foo pulling --rebase and pushing back commits, just like master. | 00:25 |
|
tomoj
| fynn: and then pull with rebase in master to get the new foo commits? | 00:26 |
| ← JNRowe left | 00:26 |
|
fynn
| Ilari: stuff gets twisted like that once you start to discuss things like infinite sets... maybe we should treat that notion as simply ill-defined? | 00:26 |
|
| tomoj: yup, the beautiful thing is that's how master works _anyway_. | 00:27 |
|
tomoj
| fynn: what do you mean? | 00:27 |
| → wshimmy joined | 00:28 |
|
fynn
| tomoj: so, foo pulls --rebase when it wants to update itself, and pushes the commits it wants to push. master does the same thing. | 00:28 |
|
| this is a super simple workflow. no caveats, no possible problems, no edge cases. | 00:28 |
| → foobarfoo joined | 00:29 |
| ← Yuuhi left | 00:29 |
| → plediii_ joined | 00:29 |
|
fynn
| our mistake yesterday is that we thought we should find a way for foo to interact with master, when in fact there's no reason to do that and it only creates a problem with the rebases. | 00:30 |
|
Ilari
| fynn: You can have local repo with topic branches only. No master branch. | 00:30 |
| ← xyz left | 00:30 |
|
fynn
| Ilari: yeah, though for our needs, we want a master branch (effectively, the trunk) | 00:30 |
|
| every developer has a master branch, and 0 or more topic branches. | 00:30 |
|
Ilari
| fynn: Setting push to tracking comes especially handy in such setup (requires quite recent version). | 00:30 |
|
fynn
| Ilari: I thought branch tracking is a fairly old feature? | 00:31 |
|
| is "push tracking" something different? | 00:31 |
|
Ilari
| fynn: Directing pushes to tracked branch. It is new feature. | 00:32 |
| ← plediii_ left | 00:32 |
|
fynn
| awesome. in any case, we're generally running latest git, so it's not a problem. | 00:32 |
| ← robinr left | 00:32 |
|
tomoj
| Ilari: are you talking about remote.origin.push? | 00:32 |
|
Ilari
| At least 1.6.3 required. Nope, push.default | 00:34 |
|
fynn
| so now, "git checkout --track origin/foo" would cause not only future pulls to pull from origin/foo by default, but also future pushes? | 00:35 |
|
Ilari
| fynn: It isn't default for pushes. | 00:36 |
|
fynn
| Ilari: so, the only thing is that you can now set push.default, whereas before you had to always specify an explicit push target? | 00:36 |
| ← parasti left | 00:37 |
|
tomoj
| before 'git push' did matching | 00:37 |
|
| now you get to pick | 00:37 |
|
Ilari
| fynn: The old behaviour is one of the values of that setting (the default one). | 00:37 |
| ← sps left | 00:37 |
| → fujin joined | 00:37 |
|
tomoj
| fynn: I am reluctantly accepting that you may be onto something | 00:37 |
|
| I always felt like I had to push to origin/master from master, but don't know why I felt that way | 00:38 |
| ← w|shimmy left | 00:39 |
|
tomoj
| still, I keep my master clean, so it doesn't get rebased, and I can rebase foo onto master, fast-forward master, and push | 00:40 |
|
| but then, what's the point in even having a master branch if it's always clean? :( | 00:40 |
|
Ilari
| fynn: Regarging merges: One can draw certain number of distict maximal paths through history (often that number gets huge, Linux history some time ago had ~2^2074 such paths). Each such path describes a possible observer: What commits are made locally and what is merged in? | 00:42 |
| ← MisterN left | 00:42 |
|
Ilari
| fynn: Maximal meaning that the starting point has no children and ending point has no parents. | 00:45 |
| ← asksol left | 00:46 |
| ← kpreid_ left | 00:48 |
| → kpreid_ joined | 00:48 |
| → paltman94 joined | 00:48 |
|
tomoj
| fynn: why exactly do you have a need for a master branch? | 00:50 |
|
fynn
| tomoj: regular development, unrelated to foo features. | 00:51 |
|
| trivial example being trunk bug fixes, or any sort of urgent trunk patches. | 00:52 |
|
tomoj
| but why not just branch off origin/master and fix in there? | 00:52 |
|
fynn
| well, seeing the way we work, we could do that every time. | 00:52 |
| ← cemerick left | 00:53 |
|
fynn
| every pull --rebase is exactly the same a branching origin/master locally, committing, and FF back. | 00:53 |
|
| there's basically no reason to keep a persistent master if you always pull --rebase to it. | 00:54 |
| ← wsc left | 00:55 |
|
Ilari
| The number of paths for n commits is O(e^(n/e)). | 00:55 |
|
| fynn finds Ilari strangely fascinating. | 00:55 |
|
fynn
| your description of this stuff is really high level. it's a unique way of looking at something as practical as a VCS. | 00:56 |
| ← melvinram left | 00:56 |
|
fynn
| tomoj: (in fact, I'm not sure there's any reason to keep a persistent local branch if you always push any local commit to origin as soon as its done - which is what we generally do here) | 00:57 |
|
| the only justification for a local branch is to a place to keep commits that for any reason you're not ready to push to its remote origin yet. | 00:58 |
|
tomoj
| fynn: is a commit "done" when it's committed? | 00:58 |
|
fynn
| yes, "as soon as it's made" | 00:58 |
|
tomoj
| fynn: so you push without running tests? :O | 00:58 |
|
| or only commit after running test? | 00:58 |
|
fynn
| tomoj: indeed we do; our test suite takes an hour to fully complete. | 00:59 |
|
tomoj
| damn | 00:59 |
|
fynn
| so it only really runs on the integration server. | 00:59 |
|
| so up to an hour after the commit, you may get a message that your commit broke the build. | 00:59 |
| ← werdnativ left | 01:00 |
| → pinpinlelapin joined | 01:00 |
| → Roman2K_ joined | 01:01 |
|
tomoj
| I am consoled that my workflow is not totally stupid, it appears hashrocket does it: http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html | 01:02 |
| ← pinpinlelapin left | 01:03 |
| dfr|work → dfr|side_project | 01:03 |
| → sylvainfriquet joined | 01:03 |
|
tomoj
| also, lol @ interactive rebasing "will allow us to pretend that we wrote the tests first" | 01:04 |
|
fynn
| heh | 01:06 |
| → melvinram joined | 01:06 |
| → spaceonline joined | 01:07 |
| ← brizly1 left | 01:07 |
|
fynn
| tomoj: regarding "I keep my master clean, so it doesn't get rebased" - does that mean you always merge-pull into it from origin/master? | 01:09 |
|
tomoj
| yeah | 01:09 |
| → ProperNoun joined | 01:10 |
|
tomoj
| though the workflow in that article has a problem I believe we talked about: if someone commits to origin after you rebased foo onto master but before you managed to fast-forward master to foo and push, you will have to rerebase | 01:10 |
|
| fynn: of course the merge-pull is always a fast-forward | 01:11 |
|
| ...unless someone commits AFTER I fast-forward master to foo but before I push :( | 01:12 |
|
context
| maybe. if hulu will stop acting retarded | 01:12 |
| ← ethercrow left | 01:12 |
|
fynn
| tomoj: right, so you sacrifice origin/master's history, to keep master clean | 01:13 |
|
tomoj
| I am a one-man team though, so it's ok :) | 01:13 |
|
fynn
| well, right, that simplifies things quite a bit :) | 01:13 |
|
| in a full team, your origin/master history would be a) non-linear, b) littered with merge commits. | 01:13 |
|
tomoj
| unless I don't pull and instead fetch so I can see if I need to rerebase | 01:15 |
|
| which ends up way more complicated than your idea | 01:15 |
|
context
| i dont use topic branches enough :x even on code only i touch :/ | 01:15 |
| ← willb1 left | 01:15 |
|
fynn
| tomoj: "unless someone commits AFTER I fast-forward master to foo but before I push" <- how does that change things? | 01:15 |
|
tomoj
| well, really it doesn't I guess, since if that happens my push will just fail | 01:16 |
|
fynn
| I mean, if you're the only one pushing/pulling to origin/master, all your pushes would be fast-forwards | 01:16 |
| → willb1 joined | 01:16 |
|
fynn
| if you you're not, what happens here is that you need to pull again | 01:16 |
|
| yeah, exactly. | 01:16 |
|
tomoj
| and if the push fails then I know I need to go back and rerebase | 01:16 |
|
fynn
| you pull again, which is a FF, then you push your commits. | 01:16 |
|
| hm, I thought you never rebased? | 01:16 |
|
| in that workflow, anyway. | 01:17 |
| → bcardarella joined | 01:17 |
| → wsc joined | 01:17 |
| ← Roman2K left | 01:17 |
|
tomoj
| here's the problem. I do some work in foo and decide it's time to push it. so I rebase foo onto origin/master, switch to master and fast-forward to foo. if someone commits right now, before I push, then my push of master will fail | 01:18 |
|
| and pulling master wouldn't be a fast-forward | 01:18 |
|
| makes much more sense to push directly from foo I guess | 01:18 |
| → ethercrow joined | 01:18 |
|
fynn
| yup... | 01:18 |
| ← djgera left | 01:19 |
|
tomoj
| one of the steps in that hashrocket article is merging back to master before pushing, like I used to think. I wonder why? | 01:19 |
|
| they never work in master anyway, so why is it even there? | 01:20 |
|
fynn
| btw, pulling master may be a FF | 01:21 |
|
| that is, pulling origin/master into master | 01:21 |
|
tomoj
| but it's fast-forwarded to foo, and foo changes haven't been pushed yet..? | 01:21 |
|
fynn
| oh, hm, sec. | 01:21 |
|
| right, it is not. | 01:22 |
|
| there may even be conflicts. | 01:23 |
|
| in fact it can't possibly be a FF. | 01:23 |
|
tomoj
| indeed | 01:23 |
|
| but really I wouldn't have pulled, I would've just tried to push and failed | 01:23 |
|
| then I'd have to do something like: fetch, rerebase foo onto origin/master, reset master to foo, try to push again | 01:24 |
|
fynn
| and then reset hard to just before the rebase point, and repeat the process? | 01:24 |
|
tomoj
| and by that time someone may have committed again :D | 01:24 |
| ← foobarfoo left | 01:27 |
| ← aziz left | 01:30 |
|
Pieter
| hmm, I'm trying to apply a reject file created with git apply --reject, but it complains | 01:30 |
|
| any thoughts? | 01:31 |
|
| http://pastie.org/518964 | 01:31 |
| → Chillance joined | 01:32 |
|
tomoj
| Pieter: isn't there supposed to be a linebreak after the @@...@@? | 01:32 |
|
Pieter
| no, that's just metadata | 01:32 |
|
tomoj
| I have never seen a diff where there wasn't a newline after the range info | 01:34 |
|
| but I haven't seen a lot of diffs I guess | 01:34 |
| → qhoxie joined | 01:35 |
|
tomoj
| and git's complaint seems consistent with the fact that it thinks that line isn't range info because there's no newline | 01:36 |
| ← rudi_s left | 01:39 |
| ← paltman94 left | 01:43 |
| ← Gitzilla left | 01:43 |
| ← willb1 left | 01:46 |
| → willb1 joined | 01:46 |
| → Gitzilla joined | 01:47 |
| ← chris2 left | 01:49 |
| ← ereslibre left | 01:51 |
|
Ilari
| Are't there supposed to be --- and +++ lines before the hunk headers? | 01:51 |
|
SamB
| tomoj: git always puts some text there that describes (to a human) the context in which the hunk occurrs | 01:52 |
|
tomoj
| SamB: ah, I see, thanks | 01:54 |
|
SamB
| or at least, that's what it's supposed to do ;-) | 01:55 |
|
| sometimes it doesn't tell me much, but it's usually pretty helpful | 01:55 |
| ← bdowning left | 01:58 |
| → bdowning joined | 02:00 |
| ← ProperNoun left | 02:01 |
|
Pieter
| Ilari: yeah, that's what I was thinking | 02:02 |
|
| Ilari: but it's a bit silly I can't reapply the reject stuff, right? :) | 02:02 |
| → murph_ joined | 02:04 |
| ← fynn left | 02:04 |
| → ProperNoun joined | 02:05 |
| ← DrAk0 left | 02:05 |
| → ericindc_ joined | 02:06 |
| ← spearce left | 02:08 |
| ← fujin left | 02:10 |
| ← Chillance left | 02:12 |
| ← marvil07 left | 02:13 |
| ← murph left | 02:19 |
| → cytrinox_ joined | 02:20 |
| ← cytrinox left | 02:20 |
| → alanhaggai joined | 02:23 |
| → Jinzhu joined | 02:25 |
| ← willb1 left | 02:27 |
| → willb1 joined | 02:27 |
| ← aspotashev|eeepc left | 02:32 |
| → drizzd_ joined | 02:33 |
| ← whaley left | 02:35 |
| → GuyFromHell joined | 02:35 |
| ← GuyFromHell left | 02:35 |
| → whaley joined | 02:35 |
| → hax0r1337 joined | 02:38 |
| ← voker57_ left | 02:38 |
| → voker57_ joined | 02:39 |
| → boto_ joined | 02:41 |
| ← bcardarella left | 02:45 |
| ← _Vi left | 02:46 |
| → kwatz_ joined | 02:52 |
| → fujin joined | 02:52 |
| → tjafk2 joined | 02:53 |
| ← wsc left | 02:54 |
| ← drizzd left | 02:54 |
| ← boto left | 02:55 |
| ← altrux left | 03:00 |
| → scientes joined | 03:02 |
| ← klbate left | 03:03 |
| → bobesponja joined | 03:04 |
| → djgera joined | 03:05 |
| ← eddyp left | 03:05 |
| → altrux joined | 03:08 |
| ← tjafk1 left | 03:08 |
| ← whaley left | 03:11 |
| → _Vi joined | 03:13 |
| → hydrogen joined | 03:14 |
| ← bugfux left | 03:16 |
| ← JasonWoof left | 03:18 |
| → bcardarella joined | 03:20 |
| dfr|side_project → dfr|work | 03:20 |
| → hyperair joined | 03:22 |
| ← Jinzhu left | 03:22 |
| ← altrux left | 03:25 |
| ← k0001 left | 03:25 |
| → k0001 joined | 03:27 |
| ← EndlesslyCurious left | 03:28 |
| → wsc joined | 03:30 |
| ← wsc left | 03:31 |
| → wsc joined | 03:31 |
| ← makeworkeasy left | 03:34 |
| → Jinzhu joined | 03:34 |
| ← alezandro left | 03:35 |
| → jasber_ joined | 03:35 |
| → candybar_ joined | 03:37 |
| ← jasber left | 03:37 |
| ← candybar left | 03:37 |
| candybar_ → simplexity | 03:37 |
| ← jasber_ left | 03:38 |
| → madewokherd joined | 03:42 |
| → hostels joined | 03:43 |
| ← teolicy left | 03:44 |
| ← pulpfiction left | 03:45 |
| ← _Vi left | 03:46 |
| → _Vi joined | 03:46 |
| → yhager_ joined | 03:51 |
| ← hydrogen left | 03:51 |
| simplexity → candybar | 03:57 |
| → ben_h joined | 03:59 |
| ← djgera left | 04:00 |
| ← fujin left | 04:00 |
| ← demio left | 04:01 |
| → eyevee99 joined | 04:02 |
| cpg → cpg|biab | 04:04 |
| ← jfkw left | 04:06 |
| → kennethlove joined | 04:07 |
| ← bcardarella left | 04:09 |
| ← eyevee99 left | 04:10 |
| → eyevee99 joined | 04:11 |
| ← qhoxie left | 04:11 |
| ← Roman2K_ left | 04:11 |
| → Roman2K joined | 04:12 |
| ← eyevee99 left | 04:12 |
| ← hax0r1337 left | 04:14 |
| ← voker57_ left | 04:15 |
| → voker57_ joined | 04:15 |
| ← bobesponja left | 04:20 |
| → pulpfiction joined | 04:20 |
| → fujin joined | 04:24 |
| ← willb1 left | 04:27 |
| yhager_ → yhager | 04:28 |
| ← fujin left | 04:29 |
| ← voker57_ left | 04:41 |
| → voker57_ joined | 04:42 |
| ← ericindc_ left | 04:43 |
| ← melvinram left | 04:43 |
| → willb1 joined | 04:44 |
| → bugfux joined | 04:45 |
| ← leachim6 left | 04:45 |
| → ericindc_ joined | 04:46 |
| → GothAlice joined | 04:46 |
|
GothAlice
| I'd just like to say damn, thank you for Git. It's awesome, and importing form svn is very smooth. | 04:46 |
| ← Jinzhu left | 04:47 |
| ← kwatz_ left | 04:50 |
| ← sakyamuni left | 04:52 |
| fr → fr| | 04:55 |
| → simplechat joined | 04:55 |
| ← hostels left | 04:56 |
|
simplechat
| hi, i've just added a few things to my info/exclude. is there any way of removing them from the tree automatically? | 04:56 |
| → toxx__ joined | 04:57 |
| → Predominant joined | 04:58 |
| → bcardarella joined | 05:00 |
|
cloudhead
| I have a branch I'd like to merge into master, but I only want to merge certain commits, is this possible? | 05:02 |
|
cehteh
| cherry-pick | 05:04 |
|
| rebase --interactive to some extent too | 05:04 |
| → hax0r1337 joined | 05:08 |
| → qhoxie joined | 05:09 |
|
cloudhead
| cehteh, thanks, I'll look into that | 05:10 |
| → Kirill_Krasnov joined | 05:10 |
| ← namelessnotion left | 05:10 |
| ← [KK]Kirill left | 05:11 |
| Kirill_Krasnov → [KK]Kirill | 05:11 |
| ← ilteris__ left | 05:11 |
| ← voker57_ left | 05:13 |
| → voker57_ joined | 05:13 |
| ← toxx_ left | 05:14 |
| → pulpfiction- joined | 05:16 |
| ← hax0r1337 left | 05:16 |
| → ianmcorvidae joined | 05:22 |
| ← pulpfiction left | 05:23 |
| ← ianmcorvidae left | 05:26 |
| → ianmcorvidae joined | 05:26 |
| → fujin joined | 05:29 |
| ← GothAlice left | 05:31 |
| ← qhoxie left | 05:33 |
| → sakyamuni joined | 05:36 |
| → alanhaggai_ joined | 05:36 |
| ← kennethlove left | 05:37 |
| ← wshimmy left | 05:38 |
| → Kirill_Krasnov joined | 05:39 |
|
simplechat
| hey, how do i get git exclude to actually exclude things from the git tree? | 05:44 |
|
Pieter
| 'git exclude'? | 05:44 |
| ← ben_h left | 05:44 |
| → ben_h joined | 05:48 |
| ← ben_h left | 05:49 |
| → ben_h_ joined | 05:49 |
| → g3d joined | 05:50 |
| ← rpag left | 05:50 |
| → rpag_ joined | 05:50 |
| → absentia joined | 05:51 |
|
absentia
| hi.. anyone awake ? | 05:51 |
|
g3d
| yes | 05:51 |
| ← alanhaggai left | 05:52 |
|
absentia
| I'm doing a git push.. and my object 140 is like 30mb... is there any way to find out what file that is? or get a list of files that will be pushed? | 05:52 |
| → ben_h joined | 05:52 |
|
absentia
| git -v push git --verbose push git push -v git push --verbose | 05:52 |
|
| don't seem to do anything... 'cept give usage. | 05:52 |
| ← sunoano left | 05:53 |
|
simplechat
| Pieter, git: 'exclude' is not a git-command. See 'git --help'. | 05:54 |
| → sunoano joined | 05:54 |
| ← absentia left | 05:54 |
| ← [KK]Kirill left | 05:56 |
| ← ben_h left | 05:56 |
| → ben_h joined | 05:56 |
| → ben_h__ joined | 06:03 |
| ← ben_h__ left | 06:03 |
| ← torbenh4 left | 06:04 |
| → eletuchy joined | 06:04 |
| → torbenh3 joined | 06:05 |
| → ben_h__ joined | 06:05 |
| ← ben_h__ left | 06:05 |
| ← ben_h_ left | 06:10 |
| ← abns left | 06:11 |
| → ijuma joined | 06:12 |
| ← ijuma left | 06:12 |
| → ijuma joined | 06:13 |
| ← ericindc_ left | 06:13 |
| ← bcardarella left | 06:14 |
| → qhoxie joined | 06:14 |
| → ben_h_ joined | 06:16 |
| → fujin_ joined | 06:18 |
| ← fujin_ left | 06:18 |
| → Shadou joined | 06:19 |
| ← ben_h left | 06:21 |
| ben_h_ → ben_h | 06:21 |
|
hyperair
| how do i push all branches except one? | 06:25 |
|
| i'm maintaining a local stacked git branch, and i don't want to push that one since it doesn't look like anyone else can use it easily | 06:25 |
| → hax0r1337 joined | 06:27 |
| ← qhoxie left | 06:28 |
| → mithro joined | 06:30 |
| → stuffcor1se joined | 06:31 |
| ← stuffcorpse left | 06:31 |
| → ask joined | 06:32 |
| → DrAk0 joined | 06:32 |
| ask → \ask | 06:33 |
| ← bugfux left | 06:33 |
| ← fujin left | 06:34 |
| → bugfux joined | 06:34 |
| → qhoxie joined | 06:39 |
| → blaenk joined | 06:46 |
|
blaenk
| sorry for the stupid question, but is it possible to fetch a specific folder/files from a repository? or is it necessary to fetch the entire thing | 06:47 |
|
| er, badly worded question | 06:47 |
|
| basically there's only one folder (two files in it) from a repository that I want to use, but I dont want to simply copy the files because then I would lose the ability to update the source files should they change, is this possible? | 06:48 |
|
| for example in svn I would do svn co myrepos/trunk/the/specific/folder/, I guess | 06:49 |
|
voker57_
| you can't | 06:54 |
|
cehteh
| blaenk: no | 06:54 |
|
blaenk
| ah okay, thanks guys :) | 06:55 |
|
cehteh
| you can do a shallow clone | 06:55 |
|
| prolly even a shallow fetch of a single branch | 06:55 |
|
| but no single dir yet | 06:55 |
|
blaenk
| okay, thanks I appreciate the response | 06:55 |
| ← blaenk left | 06:55 |
| ← cloudhead left | 06:57 |
| → sea-gull joined | 07:05 |
| → voker57__ joined | 07:09 |
| ← cpg|biab left | 07:11 |
| ← Shadou left | 07:15 |
| → fujin joined | 07:18 |
| → cilly joined | 07:19 |
| ← voker57_ left | 07:24 |
| ← flazz left | 07:32 |
| → A6T joined | 07:33 |
| ← hax0r1337 left | 07:34 |
| → Jinzhu joined | 07:36 |
| → WinterWeaver joined | 07:37 |
| ← cilly left | 07:39 |
| → bizhat joined | 07:41 |
| mina86|aw → mina86 | 07:43 |
| → Octalot joined | 07:45 |
| → khmarbaise joined | 07:46 |
| ← alanhaggai_ left | 07:47 |
| → brizly joined | 07:47 |
| ← thommey left | 07:48 |
| → tatsuyao joined | 07:53 |
| → hax0r1337 joined | 07:55 |
| → sunoano1 joined | 07:56 |
| ← sunoano1 left | 07:56 |
| → sunoano1 joined | 07:59 |
|
Pieter
| other = xcalloc(sizeof(*other), num_head); | 08:01 |
|
| isn't that the wrong way round? :P | 08:01 |
|
paakku
| yeah but pointers returned by calloc are suitable aligned for any type anyway | 08:03 |
| → ilteris__ joined | 08:03 |
|
ben_h
| hi all - what's the most efficient way to return the commit id of the current head? | 08:08 |
|
| efficient as in processing time - i'd like to include it in my prompt | 08:08 |
| ← sunoano left | 08:08 |
| → CoderX joined | 08:11 |
| ← kenboo left | 08:11 |
|
paakku
| ben_h: git rev-parse HEAD seems to take 0.02s here. But if you want the branch name as well then look in git/contrib/completion/git-completion.bash. | 08:11 |
|
ben_h
| paakku: nice, thanks - i'll check it out | 08:12 |
| → memiux joined | 08:12 |
| ← willb1 left | 08:12 |
|
ben_h
| git rev-parse --short HEAD - perfect | 08:13 |
|
| cheers. | 08:13 |
| ← qhoxie left | 08:15 |
| ← eletuchy left | 08:15 |
| → eletuchy joined | 08:16 |
| → Sigma joined | 08:18 |
| → cilly joined | 08:18 |
| ← boto_ left | 08:18 |
| ← tatsuyao left | 08:19 |
| ← hax0r1337 left | 08:21 |
| → eddyp joined | 08:21 |
| → ph^ joined | 08:28 |
| → willb1 joined | 08:29 |
| → thommey joined | 08:30 |
| → murph__ joined | 08:34 |
| → ppawel joined | 08:34 |
| → apeiros_ joined | 08:35 |
| ← cilly left | 08:38 |
| → elmob joined | 08:44 |
| → kumbayo joined | 08:44 |
| ← bugfux left | 08:45 |
| → sitaram joined | 08:47 |
| ← murph_ left | 08:50 |
| ← _Vi left | 08:51 |
| → Grahack joined | 08:53 |
| ← brizly left | 08:53 |
| → cilly joined | 08:55 |
| → Tuomas joined | 08:55 |
| → rudi_s joined | 08:56 |
| → Cromulent joined | 09:01 |
| → yann joined | 09:04 |
| → robinr joined | 09:04 |
| ← ph^ left | 09:09 |
| → ph^ joined | 09:10 |
| → chris2 joined | 09:10 |
| ← memiux left | 09:12 |
| ← A6T left | 09:13 |
| ← xenoterracide left | 09:15 |
| → Moult joined | 09:16 |
| → xenoterracide joined | 09:17 |
| ← Moult_ left | 09:17 |
| → A6T joined | 09:22 |
| → asksol joined | 09:22 |
| → akitada joined | 09:23 |
| → lbt joined | 09:25 |
| → xflw joined | 09:26 |
| → _Vi joined | 09:26 |
| ← DrAk0 left | 09:27 |
| ← xflw left | 09:27 |
| → DrAk0 joined | 09:29 |
| → resmo joined | 09:30 |
| ← hyperair left | 09:33 |
| → patrikf joined | 09:33 |
| ← julm left | 09:34 |
| → julm joined | 09:35 |
| ← sunoano1 left | 09:35 |
| → sunoano joined | 09:38 |
| → ferdy joined | 09:38 |
| → kn1tt1 joined | 09:40 |
| ← DrAk0 left | 09:41 |
| ← xenoterracide left | 09:41 |
| → xenoterracide joined | 09:43 |
| ← cilly left | 09:46 |
| → corni joined | 09:47 |
| → shri420 joined | 09:47 |
|
shri420
| i am trying to create a new git repository and unable to do so successfully as i get the error : fatal: The remote end hung up unexpectedly | 09:48 |
| ← jefferai left | 09:48 |
|
shri420
| can anyone help me to create a simple git repo on ubuntu | 09:48 |
| → jefferai joined | 09:48 |
|
paakku
| what command did you run to get this error? | 09:48 |
|
shri420
| git clone | 09:48 |
|
paakku
| did you want to create a new repository from scratch, or clone an existing one? | 09:49 |
|
shri420
| i want to create a new repo from the scracth and want to test it by doing git clone | 09:49 |
| ← akitada left | 09:50 |
|
paakku
| IIRC git clone is unable to clone empty repositories. Try putting some commits in there first. | 09:50 |
|
drizzd_
| paakku: this has been fixed in recent versions | 09:50 |
|
| since 1.6.2, to be exact | 09:52 |
|
paakku
| shri420: which version do you have then? | 09:53 |
|
drizzd_
| even so, earlier versions would report "cannot clone empty repository" | 09:53 |
|
shri420
| i taken a tar ball and made it a git repo by using git - 1.6.1 | 09:55 |
|
| i have git 1.6.1 | 09:55 |
|
| what is the problem? | 09:55 |
|
| i followed the git user manual i have a tar ball i want to create a git tree and provide access to my collegues | 09:56 |
|
| can you guys help me | 09:56 |
| ← jast left | 09:56 |
| → jast joined | 09:56 |
| → hyperair joined | 09:56 |
|
lbt
| shri420: which docs are you using? | 09:58 |
|
shri420
| http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#setting-up-a-public-repository | 09:59 |
|
| i am sure the docs are correct. but i am missing something | 10:00 |
|
| stupid | 10:00 |
|
lbt
| usually :) | 10:00 |
|
| is git-daemon running | 10:01 |
|
| and what user is it running as | 10:01 |
|
shri420
| how do i find out. i run it through xinetd | 10:01 |
|
lbt
| OK, what distro | 10:01 |
|
shri420
| ubuntu | 10:02 |
|
lbt
| first, ps -ef | grep git-daemon | 10:02 |
|
shri420
| yes it is running as root | 10:02 |
|
lbt
| sec | 10:03 |
|
paakku
| under "Setting up a public repository", why would it matter whether git-daemon is running? The command is "git clone --bare ~/proj proj.git" so it should just read the files directly. | 10:03 |
|
shri420
| no you need to export your git repo | 10:04 |
|
| so that user can access it | 10:04 |
|
drizzd_
| paakku: public presumably means over the network | 10:04 |
|
| paakku: proj.git is supposed to be the public repo in this context | 10:05 |
|
paakku
| I guess I'm confused about which step of the instructions given in the manual is failing. | 10:06 |
|
drizzd_
| shri420: using the wrong url will also give you that error message | 10:07 |
|
shri420
| yeah i thought so, but i dont think i use wrong url | 10:08 |
|
| i will try all over again | 10:08 |
|
lbt
| back now shri420 | 10:08 |
| → klbate joined | 10:08 |
|
lbt
| OK, I assumed the 1st 2 commands went OK. So I assume git-daemon is running as per distro | 10:09 |
|
| so in debian it's looking in -base-path=/var/cache | 10:09 |
|
| by default | 10:09 |
|
| I guess ubuntu is the same | 10:09 |
| → Sigma[Mtp] joined | 10:09 |
|
shri420
| base path could be anything | 10:10 |
|
lbt
| yes | 10:10 |
|
| http://www.kernel.org/pub/software/scm/git/docs/git-daemon.html | 10:10 |
|
shri420
| but you have to tell in git dameon file in xinetd | 10:10 |
|
lbt
| yes | 10:11 |
|
shri420
| that is paramters to git dameon | 10:11 |
|
Ilari
| shri420: It is specified in command line. If no --base-path is present, the default is '/'. | 10:11 |
|
shri420
| yes i see that | 10:11 |
| → aziz joined | 10:11 |
| ← IRSeekBot left | 10:11 |
|
lbt
| so where is your git repo on the filesystem? | 10:12 |
|
| have you specified a base-path (it should be on the ps -ef line) | 10:13 |
|
Ilari
| shri420: Also, anything in system logs? | 10:13 |
| → IRSeekBot joined | 10:13 |
| ← julm left | 10:14 |
| → d0k joined | 10:17 |
| ← asksol left | 10:17 |
| → plediii_ joined | 10:19 |
| → reprore joined | 10:20 |
| → Yuuhi joined | 10:20 |
| ← Sigma left | 10:21 |
|
shri420
| i dont see anything | 10:24 |
| ← reprore left | 10:26 |
| ← up_the_irons left | 10:26 |
| ← plediii_ left | 10:26 |
| → reprore joined | 10:26 |
|
shri420
| when i do a du -sh kernel.git i see it is only 104K | 10:31 |
|
| i think it is a empty repository | 10:31 |
|
| could that be a problem | 10:31 |
| ← reprore left | 10:34 |
| → ereslibre joined | 10:36 |
| → mbroeker joined | 10:39 |
| ← comp left | 10:42 |
| ← is_null left | 10:44 |
| → pipingcats joined | 10:48 |
| ← Cromulent left | 10:53 |
|
pipingcats
| Is there a way to "import" the history of a git repository into another one? | 10:53 |
| → moonflux joined | 10:54 |
|
pipingcats
| I first started using git to manage a project of mine about a year ago, and I ended up deleting the git repository to make a new one. | 10:54 |
|
| I did it because I screwed something up that I could have fixed, and now I want to reconnect the two repositories if I can | 10:55 |
|
| they're just two repositories of the same project, but with two different initial git commits | 10:55 |
| ← kn1tt1 left | 10:56 |
|
lbt
| pipingcats: do you care about the git commit ids? | 10:57 |
|
pipingcats
| over the gap between them, not really, I guess | 10:57 |
|
lbt
| no, afterwards? | 10:57 |
|
| because the latest ids are created using the earlier ids | 10:58 |
|
pipingcats
| As long as the commits are still accessible, it doesn't matter what they're called, I guess | 10:58 |
|
| Ahh. | 10:58 |
|
lbt
| and if you rebase the later repo on the earlier one then the current 'latest' will change | 10:58 |
|
| this only matters if you share | 10:58 |
|
pipingcats
| yeah, I haven't shared anything yet | 10:58 |
|
| I want to make it nice and tidy before I do, though | 10:59 |
| → parasti joined | 10:59 |
|
lbt
| in that case you probably don't care | 10:59 |
|
| any branches ? | 10:59 |
|
pipingcats
| so I can use git rebase? | 10:59 |
|
| yeah, a bunch | 11:00 |
|
| but they all eventually end up in the same one | 11:00 |
|
lbt
| it depends what history you want to keep... | 11:00 |
|
| I would start with the old repo | 11:00 |
|
| (copy) | 11:00 |
| ← bizhat left | 11:00 |
|
lbt
| and add the new one as a remote | 11:00 |
|
| and then pull the remote branches in | 11:01 |
|
pipingcats
| that's what I tried to do, but it told me they didn't have any commits in common | 11:01 |
|
lbt
| yes | 11:01 |
|
pipingcats
| I must have used the wrong command | 11:01 |
|
lbt
| you may have to cherry pick them in | 11:02 |
|
pipingcats
| Ahhh | 11:02 |
| → up_the_irons joined | 11:02 |
|
patrikf
| git clone new-repo; cd new-repo; git pull old-repo master:old; git checkout old; git rebase --root --onto master | 11:02 |
|
| er | 11:03 |
|
| git clone new-repo; cd new-repo; git pull old-repo master:old; git rebase --root --onto old | 11:03 |
|
pipingcats
| thanks patrikf, I'll try that | 11:03 |
|
lbt
| does that cherry pick automatically patrikf | 11:03 |
|
| git rebase --root --onto old | 11:03 |
|
patrikf
| theoretically that should do the trick. untested though | 11:04 |
| → wshimmy joined | 11:07 |
| → ndim joined | 11:14 |
|
pipingcats
| Hey, the git rebase --root --onto old command isn't working | 11:15 |
| → ashH joined | 11:15 |
|
pipingcats
| everything else seems to have worked, though | 11:16 |
| ← ashH left | 11:19 |
| → aspotashev|eeepc joined | 11:21 |
| → DiegoMax joined | 11:21 |
| → ftf joined | 11:21 |
|
DiegoMax
| hello there, can somebody help me a little to set up some external repositories on my own repo ? | 11:21 |
| ← shri420 left | 11:23 |
| ← pulpfiction- left | 11:24 |
| → pulpfiction joined | 11:24 |
| → montylounge joined | 11:24 |
| → Sho_ joined | 11:25 |
|
voker57__
| DiegoMax: man git-remote | 11:25 |
|
Gitbot
| DiegoMax: the git-remote manpage can be found at http://git.or.cz/man/git-remote | 11:25 |
|
DiegoMax
| thanks | 11:26 |
| → DaveIngram joined | 11:27 |
| → RaceCondition joined | 11:27 |
|
RaceCondition
| I have a branch in which I have a few commits that should really be in master, even before I merge the branch into master. Is my only option to get them out of the branch and to master to use git-rebase? | 11:28 |
| ← elmob left | 11:29 |
| → ashH joined | 11:30 |
|
mbroeker
| RaceCondition, how many commits do you want to apply to master? | 11:31 |
|
RaceCondition
| mbroeker, not many... about 3 or 4 of them out of 6 or 7 that are in the branch | 11:31 |
|
mbroeker
| git format-patch HEAD~8; ls; rm -f (alltheunwantedcommits) and git checkout master && for i in *.patch; do git am $i; done; | 11:32 |
|
RaceCondition
| whoa | 11:32 |
|
| mbroeker, this way they'll still stay in the branch as well, right? | 11:33 |
| ← jksz left | 11:34 |
| → plediii_ joined | 11:34 |
|
mbroeker
| RaceCondition, sure. | 11:34 |
|
RaceCondition
| mbroeker, so later then I rebase the branch onto master and do a fast-forward merge in master, won't I get conflicts? | 11:35 |
| → kn1tt1 joined | 11:35 |
|
RaceCondition
| if I have the same commits in both branches | 11:35 |
|
mbroeker
| RaceCondition, it will most likely result in small conficts... | 11:35 |
|
RaceCondition
| mbroeker, still, what about rebasing and editing commit order? | 11:36 |
|
| I've never done it so I'm a bit afraid, but I could try | 11:36 |
|
mbroeker
| just create a testing branch and apply your three commits and then merge the entire branch into testing. i guess that you won't get any conflicts which cannot be autoresolved... | 11:37 |
| → brizly joined | 11:37 |
| ← DaveIngram left | 11:38 |
|
DiegoMax
| im not sure if i understand this correctly, and sorry but im new to GIT | 11:38 |
|
RaceCondition
| mbroeker, OK, thanks | 11:38 |
|
DiegoMax
| i mantain a project that uses FFMPEG as a dependency, is a "remote" what i have to set up just to keep ffmpeg's code synced in my repo ? | 11:38 |
| ← Sigma[Mtp] left | 11:38 |
| → torbenh4 joined | 11:39 |
| ← torbenh3 left | 11:40 |
|
sitaram
| DiegoMax: you want submodules, and hopefully someone with more experience at *using* them will chip in | 11:41 |
|
DiegoMax
| okay thanks | 11:41 |
| ← montylounge left | 11:41 |
| → Juan joined | 11:43 |
| → bcarlyon|laptop joined | 11:44 |
| → robinsmidsrod1 joined | 11:45 |
| ← Juan left | 11:45 |
| ← BarryCarlyon left | 11:45 |
| bcarlyon|laptop → BarryCarlyon | 11:45 |
| → ferai joined | 11:45 |
| ← ashH left | 11:46 |
| → mithraic_ joined | 11:46 |
| → ricky_ joined | 11:46 |
| ← ricky left | 11:47 |
| ricky_ → ricky | 11:47 |
| ← aspotashev|eeepc left | 11:47 |
| ← jefferai left | 11:47 |
| ← corni left | 11:47 |
| ← xenoterracide left | 11:47 |
| ← ph^ left | 11:47 |
| ← sitaram left | 11:47 |
| ← apeiros_ left | 11:47 |
| ← murph__ left | 11:47 |
| ← thommey left | 11:47 |
| ← WinterWeaver left | 11:47 |
| ← voker57__ left | 11:47 |
| ← tjafk2 left | 11:47 |
| ← spaceonline left | 11:47 |
| ← __iron left | 11:47 |
| ← qrush left | 11:47 |
| ← Predominant left | 11:47 |
| ← joevano left | 11:47 |
| ← warthog9 left | 11:47 |
| ← devendra_l left | 11:47 |
| ← FreakGuard left | 11:47 |
| ← jbwiv left | 11:47 |
| ← ericindc left | 11:47 |
| ← hatseflats left | 11:47 |
| ← dmlloyd left | 11:47 |
| ← dfr|work left | 11:47 |
| ← eb_ left | 11:47 |
| ← robinsmidsrod left | 11:47 |
| ← jmspeex left | 11:47 |
| ← shellsage_ left | 11:47 |
| ← coldboot left | 11:47 |
| ← tchan left | 11:47 |
| ← eldragon left | 11:47 |
| ← xckpd7 left | 11:47 |
| ← metze_away left | 11:47 |
| ← sylvainfriquet left | 11:47 |
| → xenoterracide joined | 11:47 |
| → voker57__ joined | 11:47 |
| → aspotashev|eeepc joined | 11:47 |
| → jefferai joined | 11:47 |
| → corni joined | 11:47 |
| → ph^ joined | 11:47 |
| → sitaram joined | 11:47 |
| → apeiros_ joined | 11:47 |
| → murph__ joined | 11:47 |
| → thommey joined | 11:47 |
| → WinterWeaver joined | 11:47 |
| → Predominant joined | 11:47 |
| → tjafk2 joined | 11:47 |
| → spaceonline joined | 11:47 |
| → __iron joined | 11:47 |
| → FreakGuard joined | 11:47 |
| → qrush joined | 11:47 |
| → shellsage_ joined | 11:47 |
| → joevano joined | 11:47 |
| → jbwiv joined | 11:47 |
| → warthog9 joined | 11:47 |
| → hatseflats joined | 11:47 |
| → devendra_l joined | 11:47 |
| → ericindc joined | 11:47 |
| → coldboot joined | 11:47 |
| → dmlloyd joined | 11:47 |
| → dfr|work joined | 11:47 |
| → eb_ joined | 11:47 |
| → jmspeex joined | 11:47 |
| → tchan joined | 11:47 |
| → eldragon joined | 11:47 |
| → xckpd7 joined | 11:47 |
| → cods joined | 11:47 |
| → pastie joined | 11:47 |
| → Fissure joined | 11:47 |
| → jester2 joined | 11:47 |
| → cbreak joined | 11:47 |
| → osfameron joined | 11:47 |
| → coopsh joined | 11:47 |
| → Jippi joined | 11:47 |
| → metze_away joined | 11:47 |
| → spb joined | 11:47 |
| → mitsuhiko joined | 11:47 |
| → thijso joined | 11:47 |
| → shana joined | 11:47 |
| → Grum joined | 11:47 |
| → mpr joined | 11:48 |
| ← jefferai left | 11:48 |
| ← kn1tt1 left | 11:49 |
| ← Roman2K left | 11:50 |
| → Roman2K joined | 11:51 |
| → knittl joined | 11:52 |
|
pipingcats
| Is there an "alias" for the very first commit in a repository? | 11:52 |
|
| Kind of like the reverse of HEAD | 11:52 |
| ← stuffcor1se left | 11:52 |
| → stuffcorpse joined | 11:53 |
|
sitaram
| pipingcats: no, because there need not be only one | 11:53 |
| ← sakyamuni left | 11:53 |
|
sitaram
| I can fetch a completely unrelated branch from some repo and stick it in my repo, no you have two "root" commits | 11:53 |
|
pipingcats
| ahh | 11:54 |
| → Roman2K_ joined | 11:54 |
|
pipingcats
| I've still kind of been using git as a glorified cookie trail | 11:54 |
| ← Roman2K_ left | 11:54 |
|
pipingcats
| because I'm the only programmer | 11:54 |
| → Roman2K_ joined | 11:55 |
| → shri420 joined | 11:55 |
|
shri420
| guys, still i am unable to setup a git repo on my machine | 11:55 |
|
| please help me | 11:55 |
|
pipingcats
| What OS are you running, shri420? | 11:56 |
|
shri420
| ubuntu | 11:56 |
| → Superbaloo joined | 11:56 |
|
pipingcats
| http://book.git-scm.com/4_setting_up_a_public_repository.html | 11:56 |
|
shri420
| i follow that but i am unable to setup | 11:56 |
|
sitaram
| pipingcats: there are ways to get that, but nothing elegant | 11:57 |
|
shri420
| since i get fatal: The remote end hung up unexpectedly | 11:57 |
|
pipingcats
| Right now I'm still trying to figure out how to connect the two histories of these repositories together | 11:57 |
|
sitaram
| pipingcats: one way is "git log --format="%p-%h"|grep ^- | 11:57 |
| → drdave joined | 11:57 |
|
pipingcats
| shri420: did you run git-daemon? | 11:57 |
| ← _Vi left | 11:58 |
|
pipingcats
| go to where you put the repository and run git-daemon | 11:58 |
|
shri420
| yes it is running | 11:58 |
|
sitaram
| shri420: I suspect something more basic; I remember you asking this in the morning, though I got disconnected later | 11:58 |
|
shri420
| pipingcats: i run git daemon via xinted | 11:58 |
|
| xinetd | 11:58 |
|
pipingcats
| how are you trying to fetch from the repository? | 11:59 |
| ← aspotashev|eeepc left | 11:59 |
|
shri420
| using git clone | 11:59 |
|
sitaram
| and the URL? | 12:00 |
| ← ftf left | 12:00 |
|
sitaram
| is it an ssh: URL or a git: URL | 12:00 |
|
| ? | 12:00 |
|
shri420
| git clone git://<IPAddress>/kernel.git | 12:00 |
| → FunkeeMonk joined | 12:00 |
|
pipingcats
| it should look something like "git clone git@myrepository:~/project.git/" if you put the project folder in the home folder of a git account you made | 12:00 |
|
shri420
| pipingcats: i put inside /pub/scm directory and have given this directory as argument to git-daemon | 12:01 |
|
sitaram
| shri420: as pipingcats says, try putting in the full path to your repo in there, but I suspect xinetd is the problem -- you'll have to check the logs to see if it's doing it's stuff properly | 12:01 |
|
| there are ways to debug xinetd issues (though I don't know them well enough) | 12:02 |
|
shri420
| pipingcats: what is git@myrepository? | 12:03 |
|
| username? | 12:03 |
|
sitaram
| shri420: can you paste your xinetd.conf and a sample session with a few different URLs? | 12:03 |
|
pipingcats
| git@<ipaddress>:/pub/scm/project.git | 12:03 |
|
sitaram
| shri420: that syntax is only for ssh access not plain git access | 12:03 |
|
| pipingcats: he wants to run git daemon via xinetd which means public (unauthenticated) access | 12:04 |
|
pipingcats
| Ahhhhh | 12:04 |
|
| I've never used xinetd | 12:04 |
|
shri420
| full pathname works | 12:04 |
|
sitaram
| no userid involved | 12:04 |
|
| me neither | 12:04 |
|
shri420
| if i use full pathname it is working | 12:04 |
|
| thank you | 12:04 |
|
sitaram
| shri420: works? meaning you can clone? | 12:04 |
|
pipingcats
| np | 12:04 |
|
shri420
| yes | 12:04 |
|
pipingcats
| then you can do "git remote add myrepoalias git@<ipaddress>:/pub/scm/project.git" | 12:05 |
|
sitaram
| shri420: then you need to figure out how to opitimise it, or leave it as is -- after all anyone can add a remote | 12:05 |
|
pipingcats
| so you can just do "git fetch myrepoalias" later | 12:05 |
|
sitaram
| pipingcats: again that "git@" :-) | 12:05 |
|
pipingcats
| :)) | 12:05 |
|
shri420
| why do i need to add remote repo | 12:05 |
|
pipingcats
| it's just an alias | 12:05 |
|
sitaram
| shri420: if you did a clone, it automatically created a "remote" called originn | 12:05 |
|
| origin* | 12:05 |
|
pipingcats
| so you don't have to type the whole thing | 12:05 |
|
| oh, or that | 12:05 |
|
| you can just use origin, like sitaram says | 12:06 |
|
shri420
| how do i see that - using git branch -a? | 12:06 |
|
sitaram
| shri420: a "remote" in git is just a convenient, one-word, way to denote some repo with a long URL -- nothing more | 12:06 |
|
| git reomte | 12:06 |
|
| git remote | 12:06 |
|
shri420
| okay | 12:06 |
|
sitaram
| then you can also say "git remote show origin" to see details of the remote called "origin" | 12:07 |
| ← ph^ left | 12:07 |
|
sitaram
| or any other remote that "git remote" shows you of course | 12:07 |
|
doener
| sitaram: well, it is a bit more. It can also provide the defaults for fetch and push | 12:07 |
|
| sitaram: the default refspec for fetch being a major part | 12:08 |
|
shri420
| now tell me how do i provide access using webserver git web | 12:08 |
| → aspotashev|eeepc joined | 12:08 |
|
drdave
| If I've got a file /folder commited in the repository, and i decide I want to remove it from the tracked files - adding it to .gitignore won't work (only works with uncommited files. Do I use git rm --cached ? Want to check before messing things up :) | 12:08 |
| → abw__ joined | 12:10 |
| ← abw_ left | 12:10 |
|
sitaram
| shri420: basic instructions for gitweb are available somewhere; most important is to put "gitweb.cgi" in a directory that your webserver recognises as having CGI scripts. Then you have to configure the script to look in the right places for the right things. That's al | 12:10 |
|
| drdave: do you want it removed all the way *back* in history also? | 12:10 |
|
shri420
| okay i will check that, thank you | 12:10 |
| ← Roman2K left | 12:11 |
|
drdave
| um.... not that bothered so yes. | 12:11 |
|
shri420
| i am trying to design my git tree and i want to design in modular fashion, which one is good - git rebase or git merge | 12:11 |
|
sitaram
| drdave: the simpler case is handled by what you said "git rm --cached". The complex case (all the way back in history) needs filter-branch, and *will* mess up everyone who pulled from you or you pushed to | 12:11 |
|
| shri420: both have their uses; there's no single right answer there (otherwise the other one wouldn't exist!!) | 12:11 |
|
shri420
| sitaram: thats is the standard answer | 12:12 |
|
| lol | 12:12 |
|
drdave
| k - I'll remember that. Even if I've just done it locally and not pushed? | 12:12 |
|
sitaram
| hey I'm a pretty standard guy :) | 12:12 |
| → UUncia joined | 12:12 |
|
shri420
| how are usually kernel trees maintained they use git merge or rebase | 12:13 |
| → _Vi joined | 12:13 |
|
sitaram
| drdave: if you've just done it locally and not pushed, of course there's no problem | 12:13 |
| → knitt1 joined | 12:14 |
|
drdave
| So if I've not pushed is there a way to cleanly remoe it all the way back in the history? if so some pointers would be good to learn from? | 12:14 |
|
sitaram
| shri420: rebase until you are ready to push (while your topic branch is still under development) and merge otherwise of course | 12:14 |
|
drdave
| Coz if I push - I'll push my messed up commit | 12:14 |
|
sitaram
| drdave: man git-filter-branch | 12:14 |
|
Gitbot
| drdave: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch | 12:14 |
|
drdave
| thanks | 12:14 |
|
sitaram
| drdave: you likely want "--index-filter 'git rm --cached --ignore-unmatch bad.file.path'" | 12:15 |
| → jceb joined | 12:15 |
|
sitaram
| drdave: test it out. Git makes it easy. Just make a copy of your current branch as a tag so you can always come back to it, and start with a clean working tree (no uncommitted changes) | 12:16 |
|
drdave
| Does anyone ever feel that playing with git - is like your messing with time travel :) | 12:16 |
| → DavidKlein joined | 12:16 |
|
sitaram
| drdave: I've lately started saying "a branch is like an alternate reality for your project" so yes :) | 12:16 |
|
| sitaram has a son who write Harry Potter fan fiction, with time loops in it :-) | 12:16 |
|
sitaram
| writes* | 12:17 |
| ← Roman2K_ left | 12:17 |
|
shri420
| sitaram: as i understand you say: we have master branch and topic1 topic2 topic3 branches which are need to be pushed into master. after development is it rebase or merge | 12:17 |
|
| you say merge? | 12:17 |
|
sitaram
| shri420: rebase is always within one repo. Once you cross repos it better be merge hadn't it? Or I did not understand your question | 12:18 |
|
| shri420: let me describe this in more detail | 12:18 |
|
shri420
| you mean repo => which has several branches or one single branch | 12:18 |
|
sitaram
| shri420: you start topic1 off of master: git checkout master; git pull; git checkout -b topic1 | 12:18 |
|
drdave
| anyone know of any interesting projects that hook git in as a backend - I'm messing with using it for a distributed story telling tool - so its hooked into the script editor and also the text / media content. Any other similar projects - I heard about a wiki... couldn't find much. | 12:18 |
| ← pulpfiction left | 12:19 |
|
shri420
| sitaram: go ahead i am listening | 12:19 |
|
sitaram
| shri420: now you make a few commits on topic1: git commit... | 12:19 |
|
| shri420: meanwhile master on the "origin" has moved on, it got a few important things you need | 12:19 |
|
| shri420: you have not yet pushed your topic1, so you can (and in many cases should) rebase: git checkout master; git pull; git checkout topic1; git rebase master" | 12:20 |
|
| shri420: ok so far? | 12:20 |
|
shri420
| yes | 12:20 |
| → Roman2K joined | 12:21 |
|
pipingcats
| Is there a way to automatically make a new local branch for each remote branch? | 12:21 |
| ← knittl left | 12:21 |
|
sitaram
| shri420: if your topic1 takes a long time to come out of development and be in a pushable state you will almost certainly rebase a lot | 12:21 |
|
pipingcats
| if I'm say, fetching 20 new branches from a remote | 12:21 |
| ← paakku left | 12:21 |
|
sitaram
| shri420: when you're ready to push, you... push! After that, that SHA (the top of topic1) is now sacred | 12:22 |
|
| shri420: git push origin topic1:topic1 | 12:22 |
|
shri420
| now what happens to master | 12:22 |
|
| it has changes on top of the last commit to master before push or the changes are rebased to master (reverse order) | 12:23 |
|
sitaram
| shri420: I'm assuming you're not controlling master -- if you are, you can certainly merge topic1 in if it is deemed to be stable enough to do so | 12:23 |
|
shri420
| so you say - if i am inside topicX branches, i rebase from master | 12:24 |
|
| if i want to push the changes inside topic1 and not in master i merge it with master | 12:24 |
|
| when i merge it creates only one commit (or patch) isnt it? | 12:25 |
|
sitaram
| shri420: so someone else (the PL) integrates your current topic1 into master. Then, when you bring down this "master" (git checkout master; git pull), and then try and rebase your topic1 onto it (git checkout topic1, git rebase master), git notices the commits that already made it to master and puts only any new ones in topic1 on top of the new master | 12:25 |
|
shri420
| sitaram: does my PL do a merge or rebase | 12:26 |
|
| (since i dont have a PL) ;-) | 12:27 |
|
sitaram
| shri420: depends. The bulk of the development on open source happens with patches emailed, which is effectively a rebase | 12:27 |
|
| the point is, a rebase changes the SHA of a commit. If that is a problem (someone else already has that SHA) then use merge. Otherwise use rebase | 12:27 |
|
shri420
| and what happens to topic1 tree. it is deleted after wards | 12:28 |
|
| When you say SHA of a commit? which commit? | 12:28 |
|
sitaram
| shri420: whatever commit got rebased. | 12:28 |
|
shri420
| all commits which git rebased? | 12:29 |
|
sitaram
| yes | 12:29 |
|
shri420
| got rebased | 12:29 |
|
| oh, i though sha is only for the commit (depending on its contents) | 12:29 |
|
wereHamster
| contents and all its parent commits | 12:30 |
|
shri420
| and it changes only if contents changes | 12:30 |
|
| okay | 12:30 |
|
sitaram
| SHA depends on (1) commit message (2) tree (3) parent commits (4) author/committer info | 12:30 |
|
| when you rebase, parents are changing so SHA changes | 12:30 |
| → reprore joined | 12:32 |
| ← Roman2K left | 12:33 |
|
shri420
| okay i will you my setup here - we have a master linux branch - This linux branch is common for 2.6.27 Linux for my pxa processor. now i created a branch out of master for board1, my company makes similar boards (board1, board2... of same processor) so most of the stuffs are similar. so i want to group similar stuffs in one or more branches | 12:34 |
|
| now tommorrow one more board arrives i just need to do (rebase/merge, which i need to decide now) | 12:35 |
|
| thats is why i am asking these questions | 12:35 |
|
| sitaram: you got what i try to do here | 12:35 |
|
DiegoMax
| this is too complex | 12:35 |
|
sitaram
| reading... | 12:35 |
| ← pcapriotti left | 12:36 |
|
shri420
| okay i will make simple - We have a linux master branch and lots of common stuffs (android, some other bug fixes for linux 2-6.27 and so on) | 12:37 |
| ← wshimmy left | 12:37 |
|
sitaram
| shri420: conventional wisdom is to keep common stuff in a common branch and so on, otherwise if a change applies to board 1/2/3 and no 4/5 you'll be repeating that change everywhere by cherry-pick at least | 12:38 |
| → wshimmy joined | 12:38 |
|
sitaram
| shri420: I can't look too deep into your situation, but I'd recommend a good read of man git-workflows | 12:38 |
|
DiegoMax
| is there any way to tell submodules to always update to the latest version ? | 12:38 |
|
| (automagically) | 12:38 |
|
shri420
| sitaram: the problem is from master what you do (rebase/merge) | 12:39 |
|
sitaram
| shri420: and the following two thumb rules: (1) fork at the earliest point it makes sense and (2) make a change in the oldest branch that it applies to and merge upward | 12:39 |
|
shri420
| i want to make sure of this how we merge the changes in common branch into a new board branch | 12:39 |
| ← ben_h left | 12:39 |
|
shri420
| you say if it is in early stages do a rebase otherwise do a merge? | 12:40 |
| → fridim_ joined | 12:41 |
| → shadowhand joined | 12:45 |
| → blkf joined | 12:48 |
| → ben_h joined | 12:49 |
| → ben_h_ joined | 12:49 |
| → tvw joined | 12:50 |
| ← ben_h left | 12:50 |
| → masak joined | 12:50 |
|
pipingcats
| How do you make a mailbox file? | 12:53 |
|
| for use with the git am command | 12:53 |
|
Grahack
| Hi, how can I edit the initial commit? `git rebase <initial-commit-sha1>` lets me edit from the second commit only | 12:54 |
|
offby1
| I think there's a special command-line option for that | 12:54 |
|
| dunno what it is, though | 12:55 |
|
drizzd_
| pipingcats: using a mail user agent | 12:55 |
|
wereHamster
| Grahack: git rebase --root | 12:55 |
| ← sitaram left | 12:55 |
| → Bass10 joined | 12:55 |
|
Grahack
| thansk wereHamster | 12:56 |
| → kukks joined | 12:59 |
| → bx2 joined | 12:59 |
|
pipingcats
| drizzd_: What is that? | 13:00 |
|
Grahack
| wereHamster: thanks but it doesn't work here, do I need a recent git ? mine is 1.5.6.3 | 13:00 |
| ← shri420 left | 13:00 |
| → shri420 joined | 13:01 |
|
drizzd_
| Grahack: you need 1.6.2 | 13:01 |
| ← shri420 left | 13:02 |
|
drizzd_
| Grahack: with earlier versions, you need to checkout the root commit, amend it, and from your old root --onto the new root. | 13:02 |
| → jargan joined | 13:04 |
| ← jast left | 13:04 |
|
offby1
| pipingcats: "mail user agent" is a stuffy, formal name for what normal people call 'an email client'. | 13:07 |
|
RaceCondition
| mbroeker, I think it screwed it up - I did as you told and applied the patch files to master, then created another branch from master, but I merged the original branch into the new branch assuming only the patches that arent in the new branch are pulled | 13:07 |
|
offby1
| pipingcats: a typical example would be "mutt" | 13:07 |
|
RaceCondition
| but they were all pulled, and now I have duplicate patches in the history of the new branch | 13:07 |
|
| and I deleted the original branch before I discovered this | 13:07 |
|
| offby1 challenges RaceCondition to a bug-duel! | 13:07 |
|
mbroeker
| never ever test on master, RaceCondition :) | 13:07 |
|
offby1
| maybe we can get Mrs Fencepost over there to join in | 13:08 |
|
RaceCondition
| should I just create yet another branch and cherry pick only non-duplicate branches from the fucked up branch? | 13:08 |
|
pipingcats
| Ahh | 13:08 |
|
RaceCondition
| mbroeker, I did not test on master | 13:08 |
|
| bremner, I only applied the patches to master, then created a new branch for testing | 13:08 |
|
| bremner, sorry, I meant mbroeker | 13:08 |
|
drizzd_
| Grahack: http://colabti.org/irclogger/irclogger_log/git?date=2009-05-27#l1765 | 13:08 |
|
Ilari
| And mr. integer overflow, mr. stack overflow and mr. buffer overflow? :-) | 13:08 |
|
RaceCondition
| I think cherry-pick will help probably, or do a format-patch again and just appliy those 2 that I need to a new branch | 13:10 |
| ← CoderX left | 13:10 |
|
offby1
| Ilari: they're too busy | 13:11 |
| → saurabhverma joined | 13:14 |
| → montylounge joined | 13:14 |
| makies_bot → makies | 13:17 |
|
RaceCondition
| can I have git tell me where I've got whitespace errors? | 13:24 |
|
| I'm getting whitespace warnings all the time when committing, but I never find them | 13:25 |
| ferai → jefferai | 13:25 |
|
rudi_s
| RaceCondition: git diff should mark them in red if you use [color] ui = auto in your .gitconfig. | 13:25 |
|
RaceCondition
| oh, I see | 13:25 |
|
| rudi_s, what about existing commits? | 13:26 |
| → Roman2K joined | 13:26 |
| → ftf joined | 13:26 |
|
RaceCondition
| I could just do a diff on the all commits starting from initial commit | 13:26 |
|
| but that's a killer :P | 13:26 |
|
rudi_s
| RaceCondition: You could use your editor to find problematic ones now and fix them. Then there is no need to inspect old commits. | 13:27 |
| → jksz joined | 13:27 |
| ← BarryCarlyon left | 13:28 |
|
RaceCondition
| yeah | 13:28 |
| ← reprore left | 13:28 |
|
RaceCondition
| can I tell git to ignore trailng whitespace on lines that just contain whitespace and nothing more? | 13:28 |
|
| I'm used to indenting all lines, even empty ones | 13:28 |
|
| it makes sense to me to indent them | 13:28 |
|
| because they're still part of the code block, even though they're empty | 13:29 |
|
offby1
| I assume the warnings are coming from a hook, and that you can edit the hook to do whatever you want. | 13:30 |
|
DiegoMax
| well... i give up :) | 13:30 |
| → ben_h joined | 13:31 |
|
DiegoMax
| what could be the reason why im pushing the files to github, it says "all ok", but cant see the updates on the remote server ? | 13:31 |
|
| any hint ? | 13:31 |
|
offby1
| maybe you're not pushing the branch you want to push? | 13:31 |
|
DiegoMax
| i have only one branch | 13:32 |
| → reprore joined | 13:32 |
| ← aspotashev|eeepc left | 13:32 |
| → julm joined | 13:33 |
| ← Kirill_Krasnov left | 13:34 |
|
RaceCondition
| it's not possible to replace the authors/commiters e-mail address on already existing commits, right? | 13:34 |
|
| without rebuilding the whole history | 13:34 |
| ← knitt1 left | 13:34 |
| → thiago joined | 13:34 |
|
rudi_s
| RaceCondition: No. That would change the sha1 | 13:34 |
|
RaceCondition
| yeah, I know | 13:35 |
|
| I've nothing against that actually :P | 13:35 |
| ← bx2 left | 13:36 |
|
rudi_s
| RaceCondition: Then you could use git rebase -i or filter-branch (but I have no idea how filter works, never used it). | 13:36 |
|
| If you've published your repository then you shouldn't do this. | 13:37 |
|
RaceCondition
| yeah, well screw it :P too much effort | 13:37 |
|
| I've not | 13:37 |
|
| I just thought correcting old author e-mail aadresses would be a nice thing to do | 13:37 |
|
patrikf
| hmm. what's the easiest way to get a list of all paths tracked by git? | 13:37 |
|
| I know I can pipe ls-tree to cut, but maybe there's a simpler variant | 13:38 |
|
offby1
| git ls-files | 13:38 |
|
patrikf
| ah :) thanks | 13:38 |
| ← qrush left | 13:39 |
| ← jceb left | 13:41 |
| ← julm left | 13:42 |
| → julm joined | 13:42 |
| → Sigma joined | 13:44 |
| → abw_ joined | 13:49 |
| ← abw__ left | 13:49 |
| ← ben_h_ left | 13:50 |
| → whaley joined | 13:51 |
|
Grahack
| wereHamster told me about "git rebase --root" but how can I set the --onto option (mandatory) to just edit the initial commit ? | 13:52 |
| ← apeiros_ left | 13:57 |
| → apeiros_ joined | 13:57 |
|
drizzd_
| Grahack: looks like you'll have to use the method I proposed instead. | 13:58 |
| ← Scurz left | 14:00 |
| → bremner_ joined | 14:01 |
| → remy joined | 14:03 |
|
Grahack
| thanks drizzd_ I give this a try | 14:04 |
| ← ProperNoun left | 14:08 |
| → ProperNoun joined | 14:08 |
| ← reprore left | 14:09 |
| → reprore_ joined | 14:09 |
| ← brizly left | 14:11 |
| → JasonWoof joined | 14:13 |
| → memiux joined | 14:16 |
| ← apeiros_ left | 14:17 |
| → jmou joined | 14:19 |
| → tatsuyao joined | 14:19 |
| ← julm left | 14:20 |
| → marvil07 joined | 14:20 |
| → shri420 joined | 14:22 |
| → sitaram joined | 14:23 |
| → aspotashev|eeepc joined | 14:24 |
| ← shri420 left | 14:26 |
| ← corni left | 14:27 |
| → kenboo joined | 14:27 |
| → knitt1 joined | 14:31 |
| ← UUncia left | 14:32 |
| → ph^ joined | 14:34 |
| → CoderX joined | 14:35 |
| → lucideer joined | 14:38 |
| → bobmcw joined | 14:38 |
| → tatsuyao_ joined | 14:42 |
| ← tatsuyao left | 14:42 |
| ← simplechat left | 14:44 |
| ← Jinzhu left | 14:46 |
| ← aspotashev|eeepc left | 14:47 |
| ← thiago left | 14:49 |
| ← tvw left | 14:51 |
| ← tatsuyao_ left | 14:52 |
| ← ivanoats left | 14:52 |
| ← reprore_ left | 14:53 |
| → reprore_ joined | 14:53 |
| → simNIX joined | 14:54 |
| ← sea-gull left | 14:59 |
| ← chris2 left | 14:59 |
| ← bremner_ left | 14:59 |
| → tatsuyao joined | 14:59 |
| makies → makies_bot | 15:00 |
| → thiago joined | 15:02 |
| → apeiron joined | 15:02 |
| ← kpreid_ left | 15:02 |
| → kpreid_ joined | 15:03 |
| drdave → Guest44410 | 15:03 |
| → bcardarella joined | 15:06 |
| → apeiron_ joined | 15:08 |
| ← apeiron left | 15:10 |
| → ntoll joined | 15:12 |
| → _wwwald joined | 15:12 |
| ← wwwald left | 15:12 |
| → cilly joined | 15:13 |
| ← mbroeker left | 15:15 |
|
DiegoMax
| well i knew I couldnt be that stupid | 15:17 |
| → name joined | 15:17 |
|
DiegoMax
| the problem was github not working | 15:18 |
| ← abw_ left | 15:18 |
|
DiegoMax
| geez what a waste of time | 15:18 |
|
| i signed up for a gitorious account and everything just works as supposed | 15:18 |
| → SlipperyChicken joined | 15:19 |
| ← remy left | 15:20 |
| ← kenboo left | 15:21 |
| ← ph^ left | 15:22 |
| ← lucideer left | 15:22 |
| → voker57 joined | 15:23 |
| ← ia left | 15:23 |
| → JNRowe joined | 15:24 |
|
offby1
| surprising; github seems reliable to me | 15:24 |
|
DiegoMax
| they have been with issues today | 15:25 |
|
| i just saw their status page | 15:25 |
| → ia joined | 15:25 |
| → bcarlyon|laptop joined | 15:25 |
|
DiegoMax
| also, i like gitorious more tbh | 15:25 |
| → mbroeker joined | 15:25 |
| → tango_ joined | 15:26 |
|
offby1
| competition++ | 15:27 |
|
thiago
| gitorious is getting sponsored to make improvements | 15:28 |
|
| and it's open source | 15:28 |
|
| AGPL | 15:28 |
| ← WinterWeaver left | 15:29 |
| ← Grahack left | 15:29 |
| ← blkf left | 15:30 |
| ← Guest44410 left | 15:31 |
| ← montylounge left | 15:31 |
| → asksol joined | 15:32 |
| → blkf joined | 15:32 |
| → montylounge joined | 15:32 |
| ← cilly left | 15:32 |
| ← k0001 left | 15:33 |
| → k0001 joined | 15:34 |
| ← voker57__ left | 15:38 |
| ← JNRowe left | 15:38 |
| → JNRowe joined | 15:38 |
| ← JNRowe left | 15:38 |
| ← saurabhverma left | 15:38 |
| ← reprore_ left | 15:39 |
| → JNRowe joined | 15:39 |
| → ph^ joined | 15:39 |
| → reprore_ joined | 15:39 |
| → voker57_ joined | 15:41 |
| ← ericindc left | 15:42 |
| → altrux joined | 15:42 |
| ← montylounge left | 15:42 |
| ← eletuchy left | 15:46 |
| ← JNRowe left | 15:47 |
| → JNRowe joined | 15:47 |
| → Cromulent joined | 15:47 |
| ← bobmcw left | 15:49 |
| ← voker57_ left | 15:49 |
| → voker57_ joined | 15:49 |
| ← sunoano left | 15:53 |
| ← bcardarella left | 15:54 |
| ← DiegoMax left | 15:54 |
| → ericindc joined | 15:55 |
| ← voker57 left | 15:55 |
| → dodo_the_last joined | 15:58 |
| ← CoderX left | 15:59 |
| ← sitaram left | 16:00 |
| → bobmcw joined | 16:00 |
| ← JNRowe left | 16:01 |
| → JNRowe joined | 16:01 |
| ← shadowhand left | 16:01 |
| → shadowhand joined | 16:02 |
| → ivanoats joined | 16:04 |
| ← ivanoats left | 16:06 |
| jmou → julm | 16:06 |
| ← mbroeker left | 16:06 |
| → ivanoats joined | 16:07 |
| → bobmcw_ joined | 16:07 |
| → kabus joined | 16:08 |
| ← reprore_ left | 16:08 |
| → reprore_ joined | 16:08 |
| ← ivanoats left | 16:08 |
| → ethercrow_ joined | 16:09 |
| → ivanoats joined | 16:10 |
| ← bobmcw_ left | 16:10 |
| ← ethercrow left | 16:11 |
| apeiron_ → apeiron | 16:11 |
| ← ivanoats left | 16:12 |
| → sunoano joined | 16:12 |
| → kabus_ joined | 16:13 |
| → ivanoats joined | 16:13 |
| → kumbayo_ joined | 16:14 |
| → radarek joined | 16:14 |
| ← ivanoats left | 16:15 |
| ← kabus_ left | 16:15 |
| → kabus_ joined | 16:15 |
| ← ftf left | 16:16 |
| ← kabus_ left | 16:16 |
| → kabus_ joined | 16:16 |
| → ftf joined | 16:17 |
| → ivanoats joined | 16:17 |
| ← doener left | 16:18 |
| ← kabus left | 16:18 |
| → doener joined | 16:18 |
| ← ivanoats left | 16:19 |
| ← pipingcats left | 16:20 |
| ← ftf left | 16:22 |
| ← bobmcw left | 16:24 |
| → dimsuz joined | 16:25 |
|
dimsuz
| hi guys! noob question: when I do a git push, it warns me like this: "you did not specify any refspecs to push and the current remote has not configured any push refspecs..." | 16:26 |
|
| what does this mean? | 16:26 |
|
| it doesn't happen when i do push on the other host | 16:26 |
|
| why? and what to do? | 16:26 |
|
Fissure
| hm, is that related to push.default? | 16:29 |
| ← up_the_irons left | 16:29 |
|
Fissure
| are the hosts running the same version? | 16:29 |
| ← kumbayo left | 16:30 |
| ← moonflux left | 16:30 |
| ← fujin left | 16:35 |
|
dimsuz
| Fissure: not sure about same version, and yes, warning mentions push.default | 16:35 |
| → ciskje joined | 16:37 |
| → up_the_irons joined | 16:40 |
| ← FunkeeMonk left | 16:42 |
|
Fissure
| then set push.default to whatever you prefer and continue on your way | 16:43 |
| → CoderX joined | 16:44 |
| ← sgrimm left | 16:45 |
| ← up_the_irons left | 16:50 |
|
dimsuz
| like what? "master"? | 16:52 |
| → apeiros_ joined | 16:52 |
| → ftf joined | 16:52 |
| → qrush joined | 16:52 |
| → sea-gull joined | 16:53 |
| → WinterWeaver joined | 16:54 |
| ftf → the_zeno | 16:54 |
| ← ciskje left | 16:55 |
| ← the_zeno left | 16:55 |
| → up_the_irons joined | 16:58 |
| mina86 → mina86|aw | 16:59 |
| → dbaker1 joined | 17:05 |
|
dbaker1
| when I'm commiting do I need to be in the root path of my project in the terminal? | 17:05 |
|
offby1
| nope | 17:07 |
| ← WinterWeaver left | 17:07 |
|
offby1
| this is the sort of question you can answer yourself, using the time-honored technique known as "Try It And See™". | 17:07 |
| → bizhat joined | 17:08 |
|
dbaker1
| offby1: so the active branch is global on my system? | 17:09 |
| → corni joined | 17:09 |
|
dbaker1
| if I have several projects only one of them can use git ? | 17:09 |
|
wshimmy
| dbaker1: ah. you need to be *under* your root path | 17:09 |
| ← dimsuz left | 17:09 |
|
offby1
| dbaker1: gosh, I don't understand your question; but certainly you can have many git projects on a given box | 17:10 |
|
| I think wshimmy read your mind better than I did. | 17:10 |
|
wshimmy
| dbaker1: if you have ~/projects/foo and ~/projects/bar, each as distinct git repos, you can commit to foo from ~/projects/foo/baz/buz just fine, but you can't commit to bar from ~/projects/foo | 17:10 |
| ← masak left | 17:10 |
|
dbaker1
| wshimmy: ok | 17:10 |
|
| wshimmy: can I have nested git projects? | 17:10 |
|
| wshimmy: ~/projects/foo/bar and ./git inside foo and another ./git inside bar? | 17:11 |
|
wshimmy
| dbaker1: or you can confuse yourself by using GIT_DIR="~/projects/foo/.git" git commit or similar from outside of that dir | 17:11 |
|
| dbaker1: not unless you are using submodules, which is slightly different than just "nested git projects" | 17:11 |
|
dbaker1
| wshimmy: I'm not trying to confuse myself :) | 17:11 |
|
| wshimmy: great. thanks | 17:11 |
| ← _Vi left | 17:13 |
| → pjan joined | 17:18 |
| → mbroeker joined | 17:19 |
| ← hyperair left | 17:20 |
| → hyperair joined | 17:20 |
| → tchan1 joined | 17:20 |
|
| offby1 wishes he could wshimmy like his sister kate | 17:21 |
| ← tchan1 left | 17:22 |
| → mnob joined | 17:24 |
| ← reprore_ left | 17:25 |
| → tchan1 joined | 17:26 |
| ← mnob left | 17:26 |
| → willb2 joined | 17:26 |
| → mnoble joined | 17:27 |
| ← tchan1 left | 17:28 |
|
Pieter
| what's a wshimmy? | 17:29 |
| ← willb1 left | 17:32 |
|
offby1
| wshimmy (noun): an IRC user, active on the #git channel. Synonyms: Enright | 17:32 |
| ← klbate left | 17:34 |
|
wshimmy
| That wins most bizarre highlight notification of the week! | 17:34 |
| ← mnoble left | 17:35 |
| ← tchan left | 17:35 |
| → reprore joined | 17:36 |
|
| offby1 cashes in his prize and flies to Aruba | 17:36 |
|
Nugget
| heh | 17:37 |
| → ivanoats joined | 17:37 |
| → DaveIngram joined | 17:38 |
| → EndlesslyCurious joined | 17:40 |
| → ivan_ joined | 17:42 |
| → cpg joined | 17:44 |
| ← ivan_ left | 17:45 |
| ← ivanoats left | 17:48 |
| → zooko joined | 17:52 |
|
zooko
| Is it possible for two repos to have the same files and directories but different hashes, because the history of patches that created those files and directories differ? | 17:53 |
|
| Or is the version identifier the hash only of the files and directories, excluding the history of how they got there? | 17:53 |
|
offby1
| not only is it possible; it's likely | 17:53 |
|
| the commit hash effectively includes the entire history | 17:54 |
|
patrikf
| zooko: if they have all files and paths identical, then the sha1 of the tree will match (which you can see with git cat-file -p HEAD) | 17:54 |
|
offby1
| true true | 17:55 |
|
| but the commit includes, among other things, the time of day | 17:55 |
|
zooko
| But the sha1 of the tree isn't what is normally used for an identifier? | 17:55 |
|
offby1
| not too often. | 17:55 |
| mina86|aw → mina86 | 17:55 |
|
offby1
| It's more common to refer to the sha1 of a commit. | 17:55 |
|
patrikf
| zooko: no. the commit is. | 17:55 |
|
zooko
| Does the sha1 of the tree include files that are in there but which aren't under git's supervision? | 17:55 |
|
patrikf
| no. | 17:56 |
|
zooko
| Is it often the case in practice that some minor change like an automatically generated timestamp or version number or "$CvsId$" type thing in a file causes the sha1 of the tree to be different? | 17:56 |
|
patrikf
| of course. | 17:56 |
|
offby1
| well, _if_ you have such a change in your repository, then yes, the sha1 will differ. | 17:57 |
|
patrikf
| the SHA-1 will be completely different, and this is by design. it wouldn't be a good hash function otherwise... | 17:57 |
|
offby1
| But I'm not sure that happens often -- git users tend to ensure their build process doesn't modify their source files. | 17:57 |
|
| (At least, _I_ avoid that) | 17:57 |
|
zooko
| Thanks for the answers! | 17:57 |
| ← reprore left | 17:57 |
| → reprore joined | 17:57 |
|
mina86
| I would imagine automatically generated timestamp or $Id$ is changed when file content's changes so it doesn't matter anyways | 17:59 |
|
| ie. set a hook which updates file's last modification date when you save it in editor -- in such situation the date would change only if you change something else in the file as well | 18:00 |
|
offby1
| I don't _think_ git has a mechanism to expand keywords like '$Id$', and even if it does, I suspect the more sophisticated git users avoid it. | 18:00 |
|
mina86
| it has | 18:00 |
|
offby1
| ya learn something new every day ... | 18:01 |
|
mina86
| but it is somehow useless (IMO) as it works a bit differently then thing in CVS or SVN | 18:01 |
|
wereHamster
| yeah, the $id$ expands to the blob id and not the commit id | 18:01 |
|
mina86
| what's worse it gets expanded only on checkout or something like that | 18:02 |
|
offby1
| it's probably just as easy to have a build system insert timestamps and commit Ids and that kinda thing. | 18:02 |
|
| that's what I do at work anyway. | 18:02 |
|
wereHamster
| offby1: that's what most projects stored in git do, see for example GIT-VERSION-GEN in the git repo | 18:03 |
|
zooko
| offby1: you have the build system insert timestamps or commit ids? | 18:07 |
|
| So then if you ask for the sha1 of the tree state after that it will differ. | 18:07 |
|
offby1
| wereHamster: yep. GIT-VERSION-GEN is way fancier than what we use. | 18:07 |
|
| zooko: well, our build system doesn't modify the _source_ files; it instead modifies the build products. | 18:08 |
|
| it's a bad idea in general for a build to modify source. | 18:08 |
|
zooko
| offby1: okay, so the sha1 of the files which are managed by git will be unchanged. | 18:08 |
|
offby1
| correct | 18:08 |
|
| which is, of course, a Good Thing™. | 18:08 |
| ← DaveIngram left | 18:10 |
| → cemerick joined | 18:10 |
|
zooko
| Thanks, folks! Here's the ticket I've been working on to implement some git-like features on top of darcs: http://allmydata.org/trac/darcsver/ticket/3 | 18:11 |
| ← thiago left | 18:13 |
| → demio joined | 18:13 |
| ← BeerSerc left | 18:14 |
| → BeerSerc joined | 18:14 |
| ← JasonWoof left | 18:16 |
| → pulpfiction joined | 18:19 |
| ← aziz left | 18:19 |
| → aziz joined | 18:21 |
| → dsch04 joined | 18:23 |
| ← shadowhand left | 18:23 |
| ← willb2 left | 18:24 |
| → Pistahh joined | 18:24 |
| ← demio left | 18:25 |
| → bobesponja joined | 18:25 |
| ← aziz left | 18:27 |
| → aziz joined | 18:27 |
| ← Cromulent left | 18:28 |
| → tatsuyao_ joined | 18:31 |
| → robomalo joined | 18:33 |
| ← reprore left | 18:34 |
| ← tatsuyao left | 18:36 |
| ← julm left | 18:37 |
| → julm joined | 18:38 |
| ← JNRowe left | 18:39 |
| ← tatsuyao_ left | 18:39 |
| → ericindc_ joined | 18:40 |
| → MisterN joined | 18:42 |
| → ivanoats joined | 18:43 |
| → bx2 joined | 18:44 |
| ← Octalot left | 18:44 |
| → \ask_ joined | 18:45 |
| ← CoderX left | 18:45 |
| ← dreiss left | 18:45 |
| ← cemerick left | 18:45 |
| → CoderX joined | 18:45 |
| ← ivanoats left | 18:46 |
| ← memiux left | 18:50 |
| → cloudhead joined | 18:50 |
| ← _wwwald left | 18:50 |
| ← ericindc_ left | 18:51 |
| murph__ → murph | 18:52 |
| ← Suhail left | 18:52 |
| ← neoeinstein left | 18:52 |
| → _Vi joined | 18:54 |
| → dreiss joined | 18:57 |
| → sakyamuni joined | 19:00 |
| → comp joined | 19:01 |
| ← comp left | 19:01 |
| → comp joined | 19:01 |
| → Suhail joined | 19:02 |
| → rudi_s_ joined | 19:03 |
| → bugfux joined | 19:03 |
| → hpoydar joined | 19:04 |
| → chris2 joined | 19:04 |
| → hax0r1337 joined | 19:05 |
| ← __iron left | 19:07 |
| ← rudi_s left | 19:07 |
| → __iron joined | 19:09 |
| → moconnor joined | 19:15 |
| ← ben_h left | 19:16 |
| → JasonWoof joined | 19:19 |
| → tvw joined | 19:19 |
| ← mbroeker left | 19:25 |
| → yrashk joined | 19:26 |
| → memiux joined | 19:27 |
| → solydzajs joined | 19:28 |
| ← solydzajs left | 19:28 |
| ← zooko left | 19:28 |
| → cemerick joined | 19:30 |
| → zacharyc joined | 19:31 |
| → tcurdt joined | 19:33 |
|
tcurdt
| Hey folks, I am a little confused. I have a local-async-pd branch following a remote async-pd svn branch. I just did a 'git rebase master' on the local branch. Which did rebase the changes. Then did a 'git svn dcommit' ...but I would have expected it to also move the branch point. Hard to explain. Have a look here: http://vafer.org/pub/picture1.png ...understand what I mean? | 19:37 |
|
| essentially I wanted to get my changes from master over to the async-pd branch | 19:38 |
|
| so trunk and async-pd don't get too different | 19:38 |
| ← __iron left | 19:39 |
|
tomoj
| tcurdt: looks like you rebased changes that were already pushed out | 19:39 |
|
tcurdt
| yes ... to the svn branch | 19:40 |
|
| argh ... I see your point | 19:40 |
| → owen1 joined | 19:40 |
|
tomoj
| I dunno anything about git-svn | 19:40 |
|
| but in regular git, you never never rebase commits that have already been pushed | 19:40 |
|
tcurdt
| will remember that for sure! but ... hm ... wondering how I could fix this now | 19:41 |
|
| seems like I should have used a merge | 19:42 |
| → __iron joined | 19:42 |
|
tomoj
| well, you could push local-async-pd to async-pd | 19:43 |
|
| but that would be a force push | 19:43 |
| → buffi joined | 19:43 |
|
buffi
| is it possible to get the latest commit logs from a GIT repository without cloning it locally? | 19:44 |
|
tcurdt
| that's what I thought ... but no idea on how to do this with git-svn ... as usually only use git-svn dcommit | 19:44 |
|
tomoj
| tcurdt: oh, yeah, I dunno anything about git-svn, sorry | 19:44 |
|
buffi
| that is, doing the equivalent of "svn log svn://not.my.machine.com/repo" | 19:44 |
| → seanmccann joined | 19:44 |
|
tcurdt
| tomoj: nw ... thanks anyway ... still hoping to find someone here that knows though :) | 19:45 |
| → klbate joined | 19:46 |
| ← CoderX left | 19:46 |
|
buffi
| anyone? :) | 19:46 |
| ← kabus_ left | 19:48 |
|
g3d
| buffi: yes, just a sec | 19:48 |
|
buffi
| I've been reading man pages like crazy and searching for the answer, but I only located another guy with the same question on stackoverflow :) | 19:49 |
|
g3d
| buffi: see http://stackoverflow.com/questions/615816/git-how-to-get-a-snapshot-of-a-git-repository | 19:49 |
| → qhoxie joined | 19:50 |
|
WinterMute
| g3d, I think he wants logs without a local copy | 19:50 |
|
g3d
| buffi: ah heh, sorry, I totally misread your question | 19:50 |
|
buffi
| yeah, that is something completely different | 19:50 |
|
g3d
| yeah, sorry | 19:50 |
|
buffi
| no problem | 19:50 |
|
cehteh
| buffi: no such thing | 19:51 |
|
buffi
| :( | 19:51 |
|
g3d
| buffi: what do you mean by "without" cloning? | 19:51 |
|
cehteh
| there is git ls-remote to see the heads | 19:51 |
|
g3d
| buffi: as in "no access to the remote repository" ? | 19:51 |
|
buffi
| no, without checking out all files locally | 19:51 |
|
cehteh
| and if the remote has gitweb or such installed you can browse the log | 19:51 |
|
buffi
| well, if you have a SVN repo at a remote machine. you can do "svn log svn://somewhere.com/repo" to get the commit messages without having to check out all of the actual data | 19:52 |
|
cehteh
| yes | 19:52 |
|
buffi
| so no such thing in GIT? | 19:52 |
|
cehteh
| thats a difference .. git is distributed | 19:52 |
|
buffi
| so? | 19:52 |
|
cehteh
| you have to clone a repo, or have access to the remote machine | 19:52 |
|
buffi
| if it's possible to clone the repo, then it should be quite possible to fetch the logs from a repo without having to grab all of the actual data? | 19:53 |
|
| or am I missing something? | 19:53 |
|
cehteh
| or rely on the services the remote provides, such as gitweb or so | 19:53 |
| → LCIDFire joined | 19:53 |
|
buffi
| oh well, thanks anyways :) | 19:54 |
| ← seanmccann left | 19:54 |
|
cehteh
| not really possible | 19:54 |
| ← bizhat left | 19:54 |
|
cehteh
| logs are constructed from commit objects | 19:54 |
|
LCIDFire
| folks - I'm stuck here with 2 files that I cannot commit and not revert - the console just gives me "error: no desc for state={_U}" | 19:55 |
|
cehteh
| iirc there is no 'clone commits only' .. that will leave a broken repository anyways | 19:55 |
|
| LCIDFire: what OS/filesystem? | 19:55 |
|
LCIDFire
| Ubuntu 9.04/ext3 | 19:56 |
|
cehteh
| strange .. dunno what causes this error | 19:56 |
|
| git status gives? | 19:56 |
| → RhysU joined | 19:56 |
|
LCIDFire
| btw: is there any decend gui yet - I'm not a friend of console | 19:56 |
|
cehteh
| git gui | 19:57 |
|
wereHamster
| LCIDFire: gitk | 19:57 |
|
RhysU
| Dumb question-- how do I remove the execute bit on a tracked file? | 19:57 |
|
LCIDFire
| I said decend ;) | 19:57 |
| ← cemerick left | 19:57 |
| → moconnor_ joined | 19:57 |
|
cehteh
| they are decend | 19:57 |
|
| just configure your tk installation to look pretty | 19:57 |
|
wereHamster
| RhysU: chmod 664 $file; git add $file; git commit | 19:57 |
|
LCIDFire
| how would I get the status of a file in git gui | 19:57 |
|
RhysU
| Thank you | 19:57 |
| ← moconnor left | 19:57 |
|
cehteh
| it shows that | 19:58 |
|
LCIDFire
| where? | 19:58 |
|
cehteh
| prolly in 'unstaged' | 19:58 |
|
| and then right on the text box it has a headline telling about the file you selet | 19:58 |
| → tatsuyao joined | 19:59 |
| → lobolife joined | 20:01 |
| mina86 → mina86|aw | 20:01 |
| → jrmuizel joined | 20:02 |
| → jasber joined | 20:02 |
| ← _Vi left | 20:03 |
| → _Vi joined | 20:03 |
| ← scientes left | 20:03 |
| → WinterWeaver joined | 20:04 |
| ← ericindc left | 20:05 |
| → Octalot joined | 20:05 |
| ← marc_kdab left | 20:05 |
| mina86|aw → mina86 | 20:14 |
| ← tcurdt left | 20:16 |
| ← dsch04 left | 20:17 |
| ← eMBee left | 20:23 |
| → eMBee joined | 20:23 |
| ← eMBee left | 20:24 |
| ← wagle left | 20:24 |
| → toxx_ joined | 20:25 |
| ← jrmuizel left | 20:26 |
| ← DavidKlein left | 20:26 |
| → mattikus joined | 20:26 |
| → eMBee joined | 20:26 |
| ← sunoano left | 20:31 |
| ← wsc left | 20:31 |
| → boto joined | 20:34 |
| ← toxx_ left | 20:37 |
| ← RhysU left | 20:37 |
| → neoeinstein joined | 20:39 |
| → doki_pen joined | 20:44 |
| ← Roman2K left | 20:46 |
| → sunoano joined | 20:46 |
| → Grahack joined | 20:47 |
| → fynn joined | 20:48 |
| → pulpfiction- joined | 20:48 |
|
fynn
| OK, some simple questions: | 20:48 |
| → Juan_ joined | 20:48 |
|
fynn
| I'm on branch foo, how do I show ./bar.py on branch master? | 20:48 |
| → bcardarella joined | 20:48 |
|
fynn
| I.e. cat the contents of ./bar.py as they are on master's HEAD | 20:48 |
| ← buffi left | 20:49 |
| ← Tuomas left | 20:50 |
| → djgera joined | 20:50 |
| → pmurias joined | 20:51 |
|
fynn
| OK, looks like it's 'git show master:bar.py' | 20:51 |
| ← SlipperyChicken left | 20:52 |
| ← Grahack left | 20:52 |
| ← g3d left | 20:53 |
| → burto joined | 20:53 |
| ← memiux left | 20:53 |
| → sobersabre joined | 20:53 |
|
sobersabre
| hi. | 20:54 |
|
| I want to allow others to commit into my git repository. | 20:54 |
|
| what document shall I read ? | 20:54 |
| ← ppawel left | 20:55 |
|
bremner
| sobersabre: do you want to give them shell access? If not, look for gitosis | 20:55 |
|
Juan_
| http://toolmantim.com/articles/setting_up_a_new_remote_git_repository | 20:55 |
| → DrAk0 joined | 20:55 |
|
LCIDFire
| sobersabre: I'd just go for github | 20:55 |
|
sobersabre
| bremner: I prefer NOT to, this is the last resort. | 20:55 |
|
bremner
| sobersabre: gitosis seems to work pretty well then, check it out. | 20:56 |
|
sobersabre
| hm.. lemme google up github... is it some kind of public service ? | 20:56 |
| → bobmcw joined | 20:56 |
|
Ilari
| sobersabre: And giving others commit access to your repo is bad idea. The usual way is via push access to bare (no working tree) repo. | 20:56 |
| → dcolish joined | 20:56 |
|
LCIDFire
| sobersabre: the best service I know so far | 20:56 |
|
sobersabre
| Ilari: I somehow avoided knowing all these conepts whilst using git for myself :) | 20:57 |
|
dcolish
| is there a way to aggregate rss for code changes via gitweb? | 20:57 |
|
sobersabre
| "bare", etc. | 20:57 |
| → fujin joined | 20:58 |
|
sobersabre
| I think I'm gonna rtfm :) | 20:58 |
|
| thanks guys. | 20:58 |
|
| dcolish: I don't know, but trac does this. | 20:59 |
| ← pulpfiction left | 20:59 |
|
Ilari
| sobersabre: Bare repo means repo without working tree. | 20:59 |
|
sobersabre
| I mean generates rss for "version control backend" | 20:59 |
| ← lobolife left | 20:59 |
| ← burto left | 20:59 |
|
sobersabre
| Ilari: you mean an empty versioned location ? | 20:59 |
|
Nugget
| weird, the torrent crashes rtorrent. working with vuze and ctorrent though. | 20:59 |
|
| erp | 20:59 |
|
sobersabre
| and to merge from it into my master or other branch.. right ? | 20:59 |
|
| day change! :) | 21:00 |
| ← LCIDFire left | 21:00 |
|
sobersabre
| Ilari: did I "dig" your idea correctly ? | 21:01 |
|
| have I grokked it ? | 21:01 |
| ← klbate left | 21:02 |
| → klbate joined | 21:05 |
|
owen1
| i try to clone the gitosis-admin with git clone git@<server-ip>:gitosis-admin.git and being asked for a password even though git account has no password. any clues? | 21:05 |
|
sobersabre
| owen1: does it work via ssh ? | 21:06 |
|
owen1
| good question. let me see. | 21:06 |
|
sobersabre
| check if ~/.ssh/* are accessible... | 21:06 |
|
| and make sure /etc/ssh/sshd_config ... doesn't block the user for some reason. | 21:07 |
|
| like membership in a denied or no-membership in an allowed group. | 21:07 |
|
owen1
| sobersabre: i can't ssh! it ask for pass. | 21:07 |
|
sobersabre
| well, check ... ssh configuration. | 21:07 |
|
owen1
| sobersabre: le me see | 21:07 |
|
| i did chmod 700 for my home folder recently... | 21:08 |
|
sobersabre
| this doesn't matter. | 21:08 |
|
owen1
| so no guest acccouts will read any of the files in my home. | 21:08 |
|
Ilari
| sobersabre: TZ Charlie? | 21:08 |
| cpg → cpg|biab | 21:09 |
| ← dcolish left | 21:09 |
|
sobersabre
| Ilari: no idea. | 21:09 |
|
| or I'm not concentrated. | 21:09 |
|
Ilari
| owen1: Ah, that dreaded password prompt of death. Nasty diues to amount of of possible causes. | 21:10 |
| ← radarek left | 21:10 |
|
Ilari
| sobersabre: TZ Charlie => UTC+3h. | 21:10 |
|
owen1
| Ilari: i am clening the .ssh folder | 21:10 |
|
sobersabre
| I'm not used to UTC at all... I'm referring to GMT :) | 21:10 |
|
| but, yes. | 21:10 |
|
| during the summertime | 21:10 |
|
| anyway, do I understand the idea of letting evil committers to push into a bare repo: | 21:11 |
|
Ilari
| owen1: The usual causes are: 1) SSHD configuration preventing login, 2) Locked account. 3) Wrong key imported. 4) Non-default key imported. 5) SSHD doesn't like permissions. | 21:11 |
|
sobersabre
| let them put it htere, and I'll pick it up laters, compare, consider and merge whatever I want. | 21:11 |
|
owen1
| Ilari: ok. btw, i can ssh with other accounts. | 21:12 |
|
fynn
| Ilari: what was that change in "git push" on 1.6.3 you mentioned yesterday? | 21:12 |
|
sobersabre
| owen1: let's start with the simple: do you have ANY kind of successfull ssh access to that machine ? | 21:12 |
| ← univate_ left | 21:12 |
|
sobersabre
| owen1: :) missed your post. | 21:12 |
|
owen1
| sobersabre: yes | 21:12 |
|
sobersabre
| owen1: the 1st step would be check the server's configuration. | 21:12 |
| mina86 → mina86|aw | 21:12 |
|
owen1
| sobersabre: ok | 21:13 |
|
sobersabre
| usually it's located at /etc/ssh/sshd_config | 21:13 |
|
| run: egrep -n -e "Allow|Deny" /etc/ssh/sshd_config | 21:13 |
| → Moult_ joined | 21:13 |
|
sobersabre
| this will show you who's allowed or not on group/user basis. | 21:13 |
| → magera joined | 21:14 |
|
sobersabre
| has egrep found anything ? | 21:14 |
| magera → mager | 21:14 |
|
Ilari
| owen1: One trick to exclude 1 and 2 is to temporarily give the account a password, then try interactive login with it and then lock the password (but not the account!). | 21:14 |
| ← kumbayo_ left | 21:14 |
| ← dbaker1 left | 21:14 |
|
owen1
| sobersabre: 72:# Allow client to pass locale environment variables | 21:15 |
| → SlipperyChicken joined | 21:15 |
|
sobersabre
| Ilari: 5) sshd likes permissions set correctly :) | 21:15 |
|
| owen1: this means either you're on case 3)/4) which is same-same | 21:15 |
| → AdamaBot joined | 21:15 |
|
AdamaBot
| is there some command to add and commit at once? | 21:16 |
|
sobersabre
| owen1: do you have root access to that server ? | 21:16 |
| ← hax0r1337 left | 21:16 |
|
patrikf
| AdamaBot: commit FILENAME | 21:16 |
|
Ilari
| owen1: Note that not only permissions of .ssh/authorized_keys matter, but also permissions of ALL directories on path from root to it. None may have g+w or o+w. | 21:16 |
|
patrikf
| AdamaBot: or commit -a for all changes to tracked files | 21:16 |
|
owen1
| sobersabre: ok. let me try creating the public key again. | 21:16 |
|
| yes. got root. | 21:16 |
|
| it's my desktop. | 21:16 |
|
Ilari
| AdamaBot: Or 'git commit <files>...'. But that doesn't work with untracked files. | 21:16 |
|
AdamaBot
| patrikf: i have a directory where i just added multiple directories/files. "git commit -a" brings the same prompt that asks me to manually add them | 21:16 |
|
sobersabre
| owen1: when you do this, make sure you're running it on the right machine :) | 21:16 |
|
AdamaBot
| 'git add .' ? | 21:17 |
|
owen1
| sobersabre: ok. i deleted the .pub files on .ssh a few minutes ago. | 21:17 |
|
sobersabre
| AdamaBot: 1 command would be: | 21:17 |
|
Ilari
| AdamaBot: Or 'git add <directory>' | 21:17 |
|
AdamaBot
| Ilari: i added multiple directories and files in the current main directory | 21:17 |
|
sobersabre
| git add .; git commit -m "blabla added whatever was untracked :) " | 21:17 |
|
AdamaBot
| sobersabre: i see. | 21:17 |
| → tchan joined | 21:18 |
|
sobersabre
| AdamaBot: you can write an alias "supercommit" which would do this in 1 command. | 21:18 |
|
| sucommit.. | 21:18 |
|
Ilari
| owen1: I don't know does gitosis handle reinitialization correctly. | 21:18 |
|
owen1
| Ilari: it worked before. give me a sec. | 21:18 |
|
sobersabre
| owen1: also, when you run ssh-keygen, you must be correct user on the source system. | 21:18 |
|
| ( I mean src system = ssh client, dst system = ssh server) | 21:19 |
| ← bobmcw left | 21:19 |
|
Ilari
| And ssh-keygen should only be rerun if you for some reason need to change the keys or you need key for some _non-interactive_ use. | 21:19 |
|
sobersabre
| gitosis sounds like a diagnosis. | 21:19 |
|
Ilari
| sobersabre: more like 'mitosis'. | 21:20 |
|
offby1
| sobersabre: the prescription is: mouthwash | 21:20 |
|
owen1
| before running sudo -H -u git gitosis-init < /tmp/id_rsa.pub, does it matter where do i loccate this file? | 21:20 |
|
| and can i delete it after i run it? | 21:20 |
|
Ilari
| owen1: It needs to be readable by current shell process. | 21:20 |
|
offby1
| my hunch is a) no and b) yes | 21:20 |
|
sobersabre
| offby1: you've got an acute gitosis, my lad. you've got to take a break, and treat it swiftly. | 21:21 |
|
offby1
| I'm 60% sure gitosis-init copies the file to the right place | 21:21 |
|
| I floss every morning | 21:21 |
|
| offby1 nods gravely | 21:21 |
| → Fullmoon joined | 21:21 |
|
| sobersabre takes off the glasses, and looks through offby1 | 21:21 |
|
sobersabre
| such a young man ... | 21:22 |
|
Ilari
| owen1: And also apporiate domains need the fd:use permission to shell domain to inherit the file descriptor. | 21:22 |
|
| :-) | 21:22 |
|
sobersabre
| what happens these days, where a everybody is vulnerabls to such things, as gitosis. | 21:22 |
|
| much more dangerous than the infamous swine flue. | 21:22 |
|
fynn
| Are the changes to git push in 1.6.3 fully reflected in the man page? | 21:23 |
|
sobersabre
| I'm sorry, but we'll have to amputate. | 21:23 |
|
Ilari
| correction: First wave of Influenza A(H1N1). :-> | 21:24 |
| → stragerLN joined | 21:24 |
|
stragerLN
| Hello. Is there a way to merge only one commit without any other commits before that? | 21:24 |
|
Ilari
| sobersabre: No. But There's cherry-pick. | 21:25 |
|
fynn
| stragerLN: nope, you want cherry-pick | 21:25 |
|
sobersabre
| Ilari: you're too fast. and I'm not native english speaker, so I do miss some stuff. | 21:25 |
|
| like cherry-pick. | 21:25 |
| → univate_ joined | 21:25 |
|
sobersabre
| what's that ? | 21:25 |
|
stragerLN
| sobersabre: He meant to beep me | 21:26 |
|
| (I think) | 21:26 |
|
fynn
| yeah, he did. | 21:26 |
| ← doki_pen left | 21:26 |
|
Ilari
| sobersabre: Get diff of some change, apply it to current commit and commit the change. | 21:26 |
|
owen1
| my home folder is 700, the same for ./ssh and ./ssh/known_hosts | 21:26 |
| ← wshimmy left | 21:26 |
|
sobersabre
| <|oo|> | 21:27 |
| → doki_pen joined | 21:27 |
|
owen1
| do i need to give read/write permissions to everyone? | 21:27 |
|
Ilari
| owen1: No. | 21:27 |
|
owen1
| i still can't ssh with git account. | 21:28 |
|
| but can do it with others. | 21:28 |
|
Ilari
| owen1: SSHD uses DAC Override permissions to read the required files. | 21:28 |
|
owen1
| Ilari: i am afraid i don't understand what u just said.. | 21:29 |
|
mager
| Anybody use oauth-php here? | 21:29 |
|
owen1
| i'll google for it | 21:29 |
| ← Moult left | 21:29 |
| ← doki_pen left | 21:29 |
|
sobersabre
| owen1: are your users - regular unix local users ? | 21:29 |
| → doki_pen joined | 21:29 |
|
Ilari
| owen1: Pastebin one of {~/.ssh/id_dsa.pub, ~/.ssh/id_rsa.pub, ~/.ssh/identity.pub} and ~git/.ssh/authorized_keys. | 21:29 |
|
sobersabre
| I mean stored in /etc/passwd,shadow,group,gshadow ? | 21:29 |
|
owen1
| sobersabre: yes | 21:30 |
|
| sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git | 21:30 |
| → jrmuizel joined | 21:30 |
|
owen1
| i followed: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way | 21:30 |
|
sobersabre
| owen1: if so, your user must be able to login with the keys, because password is disabled. | 21:30 |
|
Ilari
| owen1: (and if possible to same paste, makes it easier to compare). | 21:30 |
|
sobersabre
| owen1: what distro are you using ? | 21:31 |
|
| I mean linux distro. | 21:31 |
|
stragerLN
| fynn: If I cherry-pick a commit then later merge the branch which has the commit I cherry-picked, will this be handled properly? I.e. will git detect it doesn't need to reapply the commit? | 21:31 |
|
sobersabre
| if linux.... | 21:31 |
| ← robomalo left | 21:31 |
|
owen1
| i use linux. | 21:31 |
|
sobersabre
| which one ? | 21:31 |
|
fynn
| sobersabre: nope, it will not. | 21:31 |
|
owen1
| sobersabre: what do u mean? ubuntu. is there any other (-: | 21:31 |
|
fynn
| err, that was for stragerLN | 21:31 |
| → lobolife joined | 21:31 |
|
stragerLN
| fynn: Aww | 21:31 |
|
| fynn: Is there any way? | 21:31 |
|
fynn
| stragerLN: as you can immediately see, applying a change in this way takes it out of context. | 21:32 |
|
sobersabre
| fynn: stragerLN, Ilari sorry I have s* nick :-\ | 21:32 |
|
fynn
| so it doesn't have the same history, so the SHA1 changes. | 21:32 |
|
stragerLN
| fynn: Can I maybe pull the commit in the other branch out and put it into master? | 21:32 |
|
fynn
| stragerLN: I think you can rebase it onto a branch of master | 21:32 |
|
sobersabre
| owen1: are you able to login without password with another users ? | 21:33 |
|
stragerLN
| fynn: There are some small bug fixes in an experimental branch and I want them into master | 21:33 |
|
| fynn: hmm? | 21:33 |
|
owen1
| sobersabre: don't know. i always use passwords. i can try if u want me to. | 21:33 |
|
sobersabre
| no | 21:33 |
|
tomoj
| stragerLN: is the experimental branch local or has it been pushed somewhere? | 21:33 |
|
sobersabre
| I am just asking for comparison. | 21:33 |
|
stragerLN
| tomoj: Not pushed, none has yet | 21:33 |
|
sobersabre
| so, let's say you're trying to login as user git into gitserver. | 21:34 |
|
| while you're a user1 on host gitclient | 21:34 |
|
| ok ? | 21:34 |
|
fynn
| stragerLN: so you have master and foo, and you have some commits on foo that you want to merge to master right now, and some that you want to merge to master later? | 21:34 |
|
sobersabre
| owen1: are you there ? | 21:34 |
|
owen1
| sobersabre: yes | 21:34 |
|
| listening | 21:34 |
|
stragerLN
| fynn: Basically yes | 21:34 |
|
sobersabre
| you're user1@gitclient, trying to login AS git@gitserver. | 21:34 |
|
fynn
| stragerLN: OK, what you should have done is make those commits in a separate branch | 21:34 |
|
stragerLN
| fynn: I know =[ | 21:35 |
|
sobersabre
| do you | 21:35 |
|
owen1
| sobersabre: i am confused. let me think | 21:35 |
|
fynn
| stragerLN: right now, I think your base option is to rebase those commits onto master, then rebase foo onto master | 21:35 |
|
stragerLN
| fynn: I want to correct it somehow but I don't know how, really | 21:35 |
|
sobersabre
| have ~/.ssh as user1@gitclient ? | 21:35 |
|
tomoj
| stragerLN: one way to do it would be to use rebase to chop those commits out, then cherry-pick them | 21:35 |
|
stragerLN
| fynn: Okay, I'll look into that | 21:35 |
| ← moconnor_ left | 21:35 |
|
stragerLN
| tomoj: mmk =] | 21:35 |
|
fynn
| tomoj: why cherrypick? | 21:36 |
|
tomoj
| fynn: what would you do? | 21:36 |
|
sobersabre
| owen1: you maybe have an athrophied case of gitclient==gitserver... | 21:36 |
|
owen1
| sobersabre: in ~/.ssh i only have 1 file: known_hosts (i am on the server) | 21:36 |
|
sobersabre
| owen1: is that the case ? | 21:36 |
|
offby1
| if git hands you cherries, make cherry-ade. | 21:36 |
|
sobersabre
| owen1: be with me... :) | 21:36 |
| ← pjan left | 21:36 |
|
owen1
| sobersabre: ok. | 21:36 |
|
sobersabre
| is gitserver==gitclient? | 21:36 |
|
fynn
| tomoj: hm, actually it may be the way to do it. | 21:37 |
| → wsc joined | 21:37 |
|
owen1
| sobersabre: let me think... | 21:37 |
|
sobersabre
| owen1: there is only 2 possible answers: "yes", or "no". | 21:37 |
|
fynn
| I think he needs to use rebase to move the commits on top of the branching point | 21:37 |
|
| then cherrypick them to master | 21:38 |
|
sobersabre
| is the server you're trying to connect via ssh the SAME as the machine you're trying to connect from ? | 21:38 |
|
owen1
| sobersabre: are u asking if my git client is the same machine as the server? | 21:38 |
|
tomoj
| fynn: if he's cherry-picking the commits need to be gone from the branch, no? | 21:38 |
| ← bcardarella left | 21:38 |
|
sobersabre
| owen1: yes. that's the question. | 21:38 |
|
fynn
| tomoj: not if they're right on top of the branching point... | 21:38 |
|
| hm, sec. | 21:39 |
|
stragerLN
| fynn/tomoj, If only one could drag-and-drop commits. xD | 21:39 |
|
owen1
| sobersabre: i have 2 computers: | 21:39 |
|
sobersabre
| ok. | 21:39 |
|
| so let's call them: gitserver and gitclient, for the sake of this discussion. | 21:39 |
|
| is it OK for you ? | 21:39 |
|
owen1
| sobersabre: desktop and laptop. the desktop will act as the server. and i'll have two clients | 21:39 |
| → memiux joined | 21:40 |
|
fynn
| tomoj: well, depends on what he can do. if he can rebase foo onto master, just making sure the commits he wants to merge are on top of master's HEAD, he can keep them in foo. | 21:40 |
|
sobersabre
| whatever. | 21:40 |
|
owen1
| sobersabre: one on the desktop and the other on the laptop. | 21:40 |
|
sobersabre
| owen1: all I want is common *terminology* | 21:40 |
| ← Juan_ left | 21:40 |
|
owen1
| sobersabre: agree | 21:40 |
|
tomoj
| fynn: and then fast-forward through just those commits? | 21:40 |
|
fynn
| tomoj: exactly. | 21:40 |
|
tomoj
| that would probably be easier than chopping them out | 21:40 |
|
fynn
| right. as long as he can rebase foo. | 21:41 |
|
WinterMute
| omg, are you two *still* analysing this? | 21:41 |
| → so_ joined | 21:41 |
|
tomoj
| WinterMute: no, different problem :) | 21:41 |
| ← djgera left | 21:41 |
|
stragerLN
| fynn/tomoj, So any conclusion? xD Still reading how rebase works | 21:41 |
| AdamaBot → mederEsite | 21:42 |
|
sobersabre
| owen1: let's call your gitclient's user "user1" | 21:42 |
|
so_
| upgraded to 1.6.2.2 on fedora, having a slight problem with the *~ pattern in my .gitignore, doesn't seem to be working | 21:42 |
|
sobersabre
| and gitserver's user "git". | 21:42 |
|
| ok ? | 21:42 |
| ← mederEsite left | 21:42 |
|
fynn
| stragerLN: are you willing to rebase foo onto master? | 21:42 |
|
sobersabre
| owen1: agreed ? | 21:42 |
|
owen1
| sobersabre: 1 sec (-: | 21:42 |
|
stragerLN
| fynn: Well I dunno what that means | 21:42 |
|
sobersabre
| you need to be now user1@gitclient | 21:42 |
|
stragerLN
| fynn: You mean make it as if I didn't branch at all? (foo is branched from master's HEAD) | 21:43 |
|
owen1
| sobersabre: when u say gitclient's user, do u mean the user on the laptop? | 21:43 |
|
fynn
| stragerLN: it means your experimental branch will get all the commits made to master since you branched it off. | 21:43 |
|
tomoj
| stragerLN: may want to read this http://gitready.com/advanced/2009/03/20/reorder-commits-with-rebase.html | 21:43 |
| → wshimmy joined | 21:43 |
|
owen1
| sobersabre: the laptop has user named yuka. | 21:43 |
|
sobersabre
| owen1: don't you laptop me. | 21:43 |
|
stragerLN
| fynn: There are no extra commits so that's fine | 21:43 |
|
| tomoj: Will do | 21:43 |
|
owen1
| sobersabre: on the propmt on the laptop is : yuka@yuka-laptop: | 21:44 |
|
fynn
| stragerLN: OK, so just read that blog from tomoj, reorder those commits to be the first | 21:44 |
|
sobersabre
| owen1: we agreed "gitserver" and "gitclient", so use only these terms. | 21:44 |
|
owen1
| sobersabre: is it the phisical machines? | 21:44 |
|
fynn
| stragerLN: then you can fast-forward master through those commits. | 21:44 |
| → bcardarella joined | 21:44 |
|
sobersabre
| owen1: you don't want to use my language. | 21:44 |
|
owen1
| sobersabre: or unix users? | 21:44 |
|
sobersabre
| :) | 21:44 |
|
stragerLN
| fynn: K I think I understand | 21:44 |
|
owen1
| sobersabre: just want to make sure. | 21:45 |
|
sobersabre
| you're confusing yourself & me too :) | 21:45 |
|
fynn
| stragerLN: basically, what you're doing when you reorder those commits is change them as if they were made on master | 21:45 |
|
tomoj
| fynn: how would the fast-forward go? reset? | 21:45 |
|
owen1
| sobersabre: gitclient=laptop | 21:45 |
|
sobersabre
| ok. | 21:45 |
|
fynn
| tomoj: yes | 21:45 |
|
sobersabre
| and gitserver=desktop ? | 21:45 |
|
owen1
| sobersabre: gitserver=desktop t | 21:45 |
|
sobersabre
| and what's | 21:45 |
|
owen1
| ye- | 21:45 |
|
| yes | 21:45 |
|
| sobersabre: let continue | 21:45 |
|
sobersabre
| and what's the username on "desktop" you're trying to connect as ? | 21:45 |
|
| "git" right ? | 21:46 |
|
owen1
| sobersabre: correct | 21:46 |
|
sobersabre
| ok. | 21:46 |
|
so_
| nm, found somehow a developer checked in a ~ file into the repository ... booo | 21:46 |
|
sobersabre
| and yuka on laptop. | 21:46 |
|
owen1
| sorry (-: | 21:46 |
|
sobersabre
| now: be yuka on laptop. | 21:46 |
|
tomoj
| stragerLN, fynn: so, I guess, do 'git rebase -i master' from your topic branch, move all the bugfix commits to the top, then 'git reset --hard XYZ' where XYZ is the sha of the last bugfix commit? | 21:46 |
|
sobersabre
| owen1: are you yuka on laptop now? | 21:46 |
|
owen1
| sobersabre: yuka is the user on the laptop but when i ssh i do git@uoaiuaou | 21:46 |
|
| sobersabre: yes | 21:46 |
| ← doki_pen left | 21:46 |
|
fynn
| tomoj: yes, that's how I think it should be done. | 21:47 |
|
sobersabre
| owen1: I understand this! | 21:47 |
| → doki_pen joined | 21:47 |
|
owen1
| sobersabre: sorry.. | 21:47 |
|
sobersabre
| when you're now yuka@laptop, run this command: | 21:47 |
|
| cd; cd .ssh | 21:47 |
|
| and tell me if you have the files: | 21:47 |
|
stragerLN
| tomoj: Q: What is the "top" ? | 21:47 |
| ← eddyp left | 21:47 |
|
sobersabre
| (id_rsa and id_rsa.pub) OR (id_dsa and id_dsa.pub) ? | 21:47 |
|
owen1
| sobersabre: i see id_rsa and id_rsa.pub and known_hosts | 21:48 |
|
sobersabre
| ok | 21:48 |
|
| now. | 21:48 |
| ← Sigma left | 21:48 |
|
tomoj
| stragerLN: the top of the editor window that pops up with all the commits | 21:48 |
|
sobersabre
| what are the permissions for the file id_rsa ? | 21:48 |
|
stragerLN
| tomoj: Heh, K | 21:48 |
| ← mager left | 21:48 |
|
sobersabre
| it should be mode should be at MOST 600 | 21:48 |
|
owen1
| sobersabre: -rw------ | 21:48 |
|
sobersabre
| ok. | 21:49 |
|
| does it belong to your yuka user ? | 21:49 |
|
| (file owner) | 21:49 |
|
owen1
| sobersabre: r u sure it's not id_rsa.pub that we should look at? | 21:49 |
|
| sobersabre: yes, yuka owns it. | 21:49 |
| ← doki_pen left | 21:49 |
|
fynn
| tomoj: I'm starting to wonder how mercurial and bazaar do this kind of stuff without rebase | 21:49 |
| → doki_pen joined | 21:49 |
|
owen1
| sobersabre: that's the folder where the client hold the private keys? | 21:50 |
|
sobersabre
| ok. now you need to copy id_rsa.pub to the desktop /tmp | 21:50 |
|
| owen1: we're currently done with client side. | 21:50 |
|
owen1
| sobersabre: why do i have two files? | 21:50 |
| ← corni left | 21:50 |
|
owen1
| sobersabre: is it normal+ | 21:50 |
|
sobersabre
| did you copy the file to owen1 id_rsa is private key for user yuka on laptop. | 21:50 |
|
| yes, it's normal. | 21:51 |
|
owen1
| sobersabre: got it. one is public and the other is private. | 21:51 |
| ← khmarbaise left | 21:51 |
|
owen1
| sobersabre: let me copy the public one. | 21:51 |
|
sobersabre
| anyway, DID YOU COPY THE FILE id_rsa.pub TO THE desktop /tmp already ? | 21:51 |
|
owen1
| sobersabre: give me a sec.. | 21:51 |
| ← fujin left | 21:51 |
|
sobersabre
| when you did so, become root on desktop. | 21:52 |
| → khmarbaise joined | 21:52 |
|
owen1
| mv id_rsa.pub /tmp/ (i did it without root) | 21:52 |
|
| i can change the ownership to root if that's what u mean. | 21:53 |
|
stragerLN
| tomoj/fynn: K, I think I need a little help. One of the bug fixes (well, really an addition) changed one of the experimental parts so there's a merge conflict (changing something which doesn't exist) | 21:53 |
|
owen1
| -rwx------ 1 oren oren 398 2009-06-14 16:37 id_rsa.pub | 21:53 |
|
sobersabre
| owen1: were you yuka@laptop, and did you copy /home/yuka/.ssh/id_rsa.pub to desktop:/tmp ?! | 21:53 |
|
tomoj
| stragerLN: yeah, that sucks | 21:53 |
|
stragerLN
| tomoj: Any resolution? | 21:53 |
|
sobersabre
| owen1: answer my question please... luckily it has only 2 answers: yes or no. | 21:54 |
|
tomoj
| stragerLN: well, you certainly can't pull that commit into master | 21:54 |
|
sobersabre
| owen1: ... | 21:54 |
|
stragerLN
| tomoj: Not in it's current state no | 21:54 |
|
owen1
| sobersabre: i copied the file to a shared folder first, | 21:54 |
|
stragerLN
| tomoj: Can I split the commit? | 21:54 |
|
sobersabre
| owen1: ok. | 21:54 |
|
| can you become root on desktop ? | 21:54 |
|
owen1
| sobersabre: that i went to the desktop machine and moved it to /tmp (oren did it. oren is the user on the desktop) | 21:55 |
|
tomoj
| stragerLN: yes, see man git-rebase | 21:55 |
|
Gitbot
| stragerLN: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase | 21:55 |
|
owen1
| sobersabre: sure | 21:55 |
|
sobersabre
| report when ready, please. | 21:55 |
|
Ilari
| owen1: Run md5sum on both files (the one in /tmp and the one in ~/.ssh) and compare values? | 21:55 |
|
stragerLN
| tomoj: That can split commits too? xD | 21:55 |
|
owen1
| sobersabre: i use sudo all the time if that's what u mean become root. | 21:55 |
| cpg|biab → cpg | 21:55 |
|
sobersabre
| owen1: I mean become root. if using sudo, then run: sudo su - | 21:55 |
|
owen1
| sobersabre: sure. let me do it. | 21:55 |
|
sobersabre
| then, after giving "oren"'s pass you're root. | 21:56 |
|
owen1
| sobersabre: i am root | 21:56 |
|
| Ilari: one sec. sobersabre is in the middle of something... | 21:56 |
|
sobersabre
| ok. run: ls -al /home/git | grep ssh | 21:56 |
|
| and show me the output (should be 1 line). I want to make sure .ssh folder exists. | 21:56 |
|
| adn the perms, etc. | 21:57 |
|
owen1
| drwx------ 2 git git 4096 2009-06-21 14:21 .ssh | 21:57 |
|
sobersabre
| ok. | 21:57 |
| ← tatsuyao left | 21:57 |
| ← Bass10 left | 21:57 |
|
sobersabre
| now run: | 21:57 |
|
tomoj
| stragerLN: there's a splitting commits section in the manpage. you'll have to split the commit with an interactive rebase, leaving everything in order, then after that rebase again to move them around, I think | 21:57 |
|
sobersabre
| ls -l /home/git/.ssh | 21:57 |
|
| this is several lines, what I want to see if you have a file named authorized_keys there | 21:58 |
| ← memiux left | 21:58 |
| ← bcardarella left | 21:58 |
|
owen1
| total 4 | 21:58 |
|
| -rw-r--r-- 1 git git 171 2009-06-21 14:21 authorized_keys | 21:58 |
|
| i see only those 2 lines | 21:58 |
| ← bx2 left | 21:58 |
|
sobersabre
| what is the size of /tmp/id_rsa.pub ? | 21:58 |
|
stragerLN
| tomoj: K, thanks | 21:59 |
| → clug joined | 21:59 |
|
sobersabre
| owen1: what is the size of /tmp/id_rsa.pub ? | 21:59 |
|
owen1
| 398 | 21:59 |
|
clug
| How do I merge two commits into one commit? | 21:59 |
|
sobersabre
| owen1: do this: | 21:59 |
|
stragerLN
| clug: git-rebase -i, then squash them, I think | 21:59 |
|
owen1
| ls -lh | 22:00 |
|
sobersabre
| cp -p /home/git/.ssh/authorized_keys /home/git/.ssh/authorized_keys.BKP | 22:00 |
|
| and then: | 22:00 |
|
| cat | 22:00 |
|
| sh1te | 22:00 |
|
clug
| no, git rebase deletes everything | 22:00 |
|
sobersabre
| cat /tmp/id_rsa.pub > /home/git/.ssh/authorized_keys | 22:00 |
|
| 2 commands. | 22:00 |
|
Ilari
| That breaks gitosis! | 22:00 |
|
sobersabre
| owen1: got it ? | 22:00 |
|
owen1
| sobersabre: yes | 22:00 |
|
sobersabre
| ran it ? | 22:01 |
|
owen1
| sobersabre: done | 22:01 |
|
sobersabre
| now run ls -l /home/git/.ssh/authorized_keys | 22:01 |
|
owen1
| -rw-r--r-- 1 git git 398 2009-06-21 15:00 /home/git/.ssh/authorized_keys | 22:01 |
|
tomoj
| clug: rebase deletes everything? | 22:01 |
|
clug
| yeah you like do git-rebase -i and then this random stuff and then everything is gone | 22:02 |
|
| subversion didn't delete stuff... | 22:02 |
|
sobersabre
| owen1: now, go back to become yuka @ laptop, and run: | 22:02 |
|
| ssh git@desktop (well, the hostname of desktop or its IP) | 22:03 |
|
tomoj
| clug: I think you must not understand how rebase works... | 22:03 |
|
sobersabre
| owen1: have you logged in ? | 22:03 |
| cpg → cpg|biab | 22:03 |
|
clug
| I thought it meant delete everything | 22:03 |
|
| what does it really do? | 22:03 |
|
owen1
| sobersabre: no. it asks for password | 22:03 |
|
sobersabre
| what is the command you're running, show me. | 22:04 |
| ← pmurias left | 22:04 |
|
tomoj
| clug: http://www.gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html | 22:05 |
|
owen1
| sobersabre: ssh git@<server_ip> | 22:05 |
|
sobersabre
| ok | 22:05 |
|
| can you become root back on the desktop ? | 22:05 |
|
owen1
| sobersabre: yes | 22:05 |
|
sobersabre
| chmod 600 /home/git/.ssh/authorized_keys | 22:05 |
|
| and then retry the ssh command. | 22:05 |
|
| OK ? | 22:05 |
|
owen1
| sobersabre: sure | 22:05 |
|
clug
| does "git remove ." remove hidden files? | 22:06 |
|
owen1
| sobersabre: still the same | 22:06 |
|
tomoj
| clug: I don't think 'git remove .' does anything... | 22:06 |
|
stragerLN
| Uh I think I messed something up. I did 'git reset 1234567' (with a real commit). How do I get back to the latest commit? | 22:07 |
|
sobersabre
| owen1: did you run the command as yuka@laptop ? | 22:07 |
|
clug
| oh, thanks | 22:07 |
|
owen1
| sobersabre: ssh? yes | 22:07 |
|
wereHamster
| stragerLN: git reset HEAD@{1} | 22:08 |
|
clug
| tomoj, oh maybe is was "git remove .*" | 22:08 |
|
tomoj
| clug: what I'm saying is I don't think "git remove" exists | 22:08 |
|
| at least it doesn't exist for me | 22:08 |
|
clug
| oh, let me see | 22:09 |
|
| it's git delete? | 22:09 |
|
stragerLN
| wereHamster: THanks =] | 22:09 |
|
clug
| oh maybe git-r-m | 22:09 |
|
stragerLN
| *Thanks =X | 22:09 |
|
parasti
| clug: it's git rm, no dashes | 22:09 |
|
clug
| so "git rm .*"? thanks, hidden files are annoying me | 22:10 |
|
sobersabre
| what is the output of: ls -l /home/git/.ssh/authorized_keys (on the server, the desktop) | 22:10 |
|
| ? | 22:11 |
|
| owen1: | 22:11 |
|
| I meant you ... | 22:11 |
|
owen1
| sobersabre: one sec | 22:11 |
| ← sea-gull left | 22:11 |
|
clug
| is there a quick command to squash all commits into one commit? | 22:11 |
|
| Then I could keep the log clean | 22:11 |
|
owen1
| -rw------- 1 git git 398 2009-06-21 15:00 /home/git/.ssh/authorized_keys | 22:11 |
|
sobersabre
| ok. | 22:11 |
|
| now, restart ssh server, just for the sake of the ...restart of the server, and retry logging from the laptop. | 22:12 |
|
| if that didn't work, run this command: | 22:12 |
|
| tail -f /var/log/auth.log (on the server) | 22:12 |
|
owen1
| sobersabre: rebbot the computer? | 22:12 |
|
sobersabre
| NO!!!! | 22:12 |
|
| run as root: | 22:12 |
|
owen1
| sobersabre: ok | 22:12 |
|
sobersabre
| invoke-rc.d ssh restart | 22:12 |
|
| did you ? | 22:12 |
|
owen1
| yes | 22:13 |
|
sobersabre
| (on the server) | 22:13 |
|
owen1
| let me try to connect | 22:13 |
|
sobersabre
| no. | 22:13 |
|
| run the tail command already. | 22:13 |
|
| why wait.. | 22:13 |
|
owen1
| ok | 22:13 |
|
sobersabre
| when you did, on the server, it will be "stuck", i.e. will wait for input. | 22:13 |
|
| then you go to the client, and try to connect. | 22:13 |
|
| during this observer server's terminal, and see what errors you will have there. | 22:13 |
|
stragerLN
| tomoj: Okay, I got the commits at the top of 'foo'. Now, what do I do with rebase to put it on 'master'? | 22:14 |
|
sobersabre
| paste the errors into pastebin.ca somewhere. | 22:14 |
|
owen1
| Failed password for git from 192.168.1.1 port 46073 ssh2 | 22:14 |
|
sobersabre
| (sshd related errors) | 22:14 |
| ← WinterWeaver left | 22:14 |
|
tomoj
| stragerLN: so, foo looks like: master <- bugfixes <- other commits ? | 22:14 |
|
stragerLN
| yes | 22:14 |
|
sobersabre
| owen1: did you touch /etc/ssh/sshd_config at any time ? | 22:14 |
| → David-T joined | 22:14 |
|
tomoj
| stragerLN: so go into master and git reset --hard <SHA of last bugfix> | 22:14 |
|
owen1
| sobersabre: no | 22:15 |
|
sobersabre
| I meaen did you edit it ? | 22:15 |
| → ereslibre_desk joined | 22:15 |
|
owen1
| sobersabre: let me see | 22:15 |
|
stragerLN
| tomoj: Done | 22:15 |
| ← jrmuizel left | 22:15 |
|
sobersabre
| compare it's date with /etc/ssh/ssh_config | 22:16 |
|
| if it's same, tell me. | 22:16 |
|
| if it's not.... tell me :) | 22:16 |
|
fynn
| BTW, am I the only one who created shortcut aliases for status and checkout? | 22:17 |
|
clug
| is there a quick command to squash all commits into one commit? | 22:17 |
|
| Then I could keep the log clean | 22:17 |
| → mederEsite joined | 22:18 |
|
owen1
| sobersabre: sshd was changed on oct 08 and ssh on may 08 | 22:18 |
|
stragerLN
| tomoj: And now it's done? =S | 22:18 |
|
sobersabre
| ok. | 22:18 |
|
| you need to have this option enabled in sshd_config: | 22:18 |
|
owen1
| sobersabre: btw, is it ok to have PermitRootLogin?? | 22:18 |
|
mederEsite
| i accidently added say, a dozen .pyc files that i dont want anymore. i know there's a .gitignore type file i can add.. how can i already get rid of all the pyc files from my current repo? | 22:18 |
|
sobersabre
| RSAAuthentication yes | 22:19 |
|
mederEsite
| i would want to get rid of them recursively in my root diretory | 22:19 |
|
sobersabre
| do you have it ? | 22:19 |
|
stragerLN
| mederEsite: Do you mean destroy from your history? | 22:19 |
|
mederEsite
| perhaps | 22:19 |
|
sobersabre
| owen1: got it ? | 22:19 |
|
mederEsite
| or get rid of in my current commit | 22:19 |
|
| as in | 22:19 |
|
tomoj
| stragerLN: yes, when you push the remote will fast-forward | 22:19 |
|
mederEsite
| not really my current commit but | 22:19 |
|
owen1
| sobersabre: got what? | 22:19 |
|
mederEsite
| the present, heh :p | 22:20 |
|
| current state of my repo, whatever | 22:20 |
|
| i dont really mind history-wise | 22:20 |
|
sobersabre
| does the /etc/ssh/sshd_config file contain a line I wrote "RSAAuthentication yes" ? | 22:20 |
|
mederEsite
| if i can get rid of it in history too, fine | 22:20 |
|
owen1
| sobersabre: yes | 22:20 |
|
sobersabre
| does it have: | 22:20 |
|
| PubkeyAuthentication yes | 22:20 |
|
| ? | 22:20 |
|
owen1
| sobersabre: yes | 22:20 |
|
| sobersabre: btw, this is commented: #AuthorizedKeysFile %h/.ssh/authorized_keys | 22:21 |
|
sobersabre
| owen1: what's the size of /home/yuka/.ssh/id_rsa.pub on the client side ? | 22:22 |
|
stragerLN
| tomoj: Many thanks. It works now. =] | 22:23 |
| ← ph^ left | 22:23 |
|
owen1
| sobersabre: 398 | 22:23 |
| → Peaker joined | 22:24 |
|
Peaker
| hey - before using git, lots of people told me that git tracks line moves between files. how do I see such "smart diffs" that show me which lines moved between files? | 22:24 |
|
| now that I've used git a while, I've never seen that supposed feature in action, so I wonder :-) | 22:25 |
|
clug
| so do you do "git rm something" or "git `rm something`" | 22:26 |
|
offby1
| the first one | 22:26 |
|
| no backticks | 22:26 |
|
| clug: your "quick command to squash all commits into one commit" is "git rebase" | 22:27 |
|
Peaker
| btw, I'd really like to have my build/testing process create automatic commits and then reset --soft those commits. And the git staging area is really standing in the way :-( When I was a git newbie people told me everyone learns to eventually like the staging area, but I see it as simply a clumsy UI element | 22:27 |
|
owen1
| sobersabre: did u give up? | 22:30 |
| ← fridim_ left | 22:30 |
|
sobersabre
| no. try running the ssh client with -v option. | 22:30 |
|
| ssh -v git@<desktopIP> | 22:31 |
|
clug
| ooh, it would be cool to make it so every 5 minutes git added my work, commited it, and squashed all the commits into one commit | 22:31 |
|
sobersabre
| and send the output to the pastebin. | 22:31 |
|
| and send me the link to the paste | 22:31 |
|
| ok ? | 22:31 |
|
Peaker
| clug: why would you want to squash everything? | 22:32 |
| ← fynn left | 22:32 |
|
sobersabre
| owen1: ok ? | 22:32 |
|
Peaker
| clug: you mean just the yet-uncommitted changes? | 22:32 |
|
owen1
| sobersabre: ok. 1 sec | 22:32 |
|
clug
| I mean squash entire log | 22:32 |
|
tomoj
| Peaker: what do you mean "create automatic commits and then reset --soft"? what are you trying to accomplish? | 22:33 |
|
Peaker
| clug: something like an automatic git commit -a --amend -m"Autosave at %date" ? | 22:33 |
|
clug
| so I always have 1 commit every 5 minutes and 1 entry in the log | 22:33 |
|
sobersabre
| I'm logging off will be back in 2-3 mins. | 22:33 |
| ← sobersabre left | 22:33 |
|
clug
| idk, I don't use those "-" things they delete stuff sometimes | 22:33 |
|
Peaker
| tomoj: I'd like every build to be labeled with a ref that uniquely identifies the entire contents of the build sources. I would like not to have any private changes that are not accounted for in this ref | 22:33 |
|
| tomoj: basically everything that would like to script commits automatically has to deal with the staging area which just complicates such scripts' lives | 22:34 |
|
tomoj
| Peaker: isn't that what tags are for? maybe I don't understand what you're trying to do | 22:35 |
|
clug
| I don't really see the point of version control anyway | 22:36 |
| ← ereslibre left | 22:36 |
| → sobersabre joined | 22:36 |
|
sobersabre
| owen1: what's up.. what's the paste link ? | 22:36 |
|
clug
| I still have to make backup copies of the project | 22:36 |
|
| and it randomly deletes stuff | 22:36 |
|
| who made git anyway? al gore? | 22:37 |
|
tomoj
| clug: git does not randomly delete stuff | 22:37 |
|
Peaker
| tomoj: people might try to build when they aren't fully committed | 22:38 |
|
| tomoj: the idea is that anyone can build a system and run tests on it - and I'd like test failures to be able to precisely identify the exact tree that built and tested | 22:38 |
|
tomoj
| Peaker: oh, I see | 22:38 |
|
Peaker
| tomoj: it would be nice if I could have a script that tried to make sure "git status" was completely clean before building, and then later used git reset --soft maybe to return to the previous situation | 22:39 |
|
tomoj
| Peaker: won't these commits get pruned anyway? or do you need them only short-term? | 22:40 |
|
sobersabre
| owen1: ... u there ? | 22:40 |
|
owen1
| sobersabre: http://pastebin.com/m8326073 | 22:40 |
| ← mattikus left | 22:42 |
|
sobersabre
| owen1: I have an idea :) | 22:43 |
|
| generate a dsa key. | 22:43 |
|
cehteh
| eek dsa :P | 22:43 |
|
sobersabre
| btw, you didn't paste the sshd_config file from the server (where git user is) | 22:43 |
|
Peaker
| tomoj: short-term is ok, also, they can be tagged to remain ungc'd | 22:43 |
|
| tomoj: with some random auto-generated date-based tag | 22:44 |
|
owen1
| sobersabre: ? i pasted the ssh log from the client | 22:44 |
|
| sobersabre: ssh -v git@4324234 | 22:44 |
|
sobersabre
| yes. | 22:44 |
|
| I've read it. | 22:44 |
| ← lobolife left | 22:44 |
|
sobersabre
| for some reason there's a skip after sending the rsa key. | 22:44 |
|
owen1
| sobersabre: do u want to see the sshd_config? | 22:44 |
|
sobersabre
| and I want to understand why. | 22:44 |
|
| yes. | 22:44 |
|
owen1
| ok | 22:44 |
|
sobersabre
| please paste it and put here the link. | 22:44 |
|
owen1
| sure | 22:44 |
| ← name left | 22:45 |
| → lucasvo_ joined | 22:46 |
|
owen1
| sobersabre: http://pastebin.com/m33bf4e1d | 22:47 |
|
| PermitEmptyPasswords no | 22:47 |
|
| sobersabre: i think we got it | 22:47 |
|
clug
| Does get have a command to delete a random file? | 22:48 |
|
| like git rm --rand | 22:48 |
|
lucasvo_
| I'm trying to set `git config user.name '#{commit_name}'` in a pre-commit hook, it doesn't seem to affect the most current commit but only the one after that. Is there a different way to do that? (I'm using this script: http://tinyurl.com/npc5pw) | 22:48 |
|
Peaker
| clug: you trolling? | 22:48 |
|
clug
| no | 22:48 |
|
tomoj
| owen1, sobersabre: btw, did you notice Ilari's warning? | 22:49 |
|
owen1
| sobersabre: i changed it no yes, restarted ssh and it didn't work. | 22:49 |
|
| tomoj: no | 22:49 |
|
tomoj
| owen1: you broke gitosis by using a plain public key for authorized_keys | 22:50 |
|
owen1
| tomoj: mmmm...so when i create a keypair i have to type a password? | 22:50 |
|
sobersabre
| tomoj: which one (there were several comments from Ilari) | 22:50 |
| ← k0001 left | 22:50 |
|
owen1
| sobersabre: maybe i have to use a password when i create the pairs. | 22:51 |
|
tomoj
| sobersabre: the one where he said, 'that breaks gitosis' | 22:51 |
| ← asksol left | 22:51 |
|
sobersabre
| ok | 22:51 |
| → k0001 joined | 22:51 |
|
tomoj
| owen1: by "plain" I don't mean no password, I mean gitosis needs to add some extra stuff in there | 22:51 |
| ← Moult_ left | 22:51 |
| → pulpfiction joined | 22:51 |
|
sobersabre
| owen1: you can change password on an existing private key. | 22:52 |
|
| tomoj: does it change the comment of the public key ? | 22:52 |
|
| owen1: can you try using getosis to reset the keys ? | 22:52 |
|
owen1
| sobersabre: what exectly should i try? | 22:52 |
| → Moult joined | 22:53 |
| → jrmuizel joined | 22:53 |
|
tomoj
| owen1: the guide you used for setting up gitosis should tell you what to do with your public key | 22:54 |
|
| owen1: but you need to fix your ssh problem first | 22:54 |
|
owen1
| tomoj: ok | 22:54 |
|
sobersabre
| I am not familiar with getosis | 22:54 |
|
| butm, you're supposed to become a git user on the desktop. | 22:54 |
|
| it's easy: become root, | 22:54 |
|
| and then run: | 22:54 |
|
| su - git | 22:54 |
|
owen1
| sobersabre: should i change the PermitEmptyPasswords no to yes? | 22:55 |
| ← wsc left | 22:55 |
|
sobersabre
| no, don't touch that just yet. | 22:55 |
|
owen1
| ok | 22:55 |
|
sobersabre
| anyway, are you git user on the desktop already / | 22:55 |
|
| ? | 22:55 |
|
owen1
| no. 1 sec | 22:55 |
|
| sobersabre: i run su - git | 22:56 |
|
| i guess i am the git now... | 22:56 |
|
sobersabre
| run this command: | 22:56 |
|
| which gitossi | 22:56 |
|
| sorry: which gitosis | 22:56 |
|
| sorry! | 22:56 |
|
| which gitosis-init | 22:56 |
|
owen1
| /usr/local/bin/gitosis-init | 22:56 |
|
sobersabre
| ok. | 22:56 |
|
| now run this: | 22:57 |
|
| gitosis-init > /tmp/id_rsa.pub | 22:57 |
|
| SORRY! | 22:57 |
|
| the oposite! | 22:57 |
|
| gitosis-init < /tmp/id_rsa.pub | 22:57 |
|
| note the direction of the redirection :) | 22:57 |
|
| you're feeding gitosis-init with the public key. | 22:57 |
|
| ok ? | 22:57 |
|
owen1
| -su: cannot open /tmp/id_rsa.pub: Permission denied | 22:58 |
|
sobersabre
| oh,.. | 22:58 |
|
| get back to root: exit | 22:58 |
|
owen1
| sudo su | 22:58 |
|
sobersabre
| nono | 22:58 |
|
| exit | 22:58 |
|
| you've become git from root shell. | 22:58 |
|
owen1
| ok | 22:58 |
|
sobersabre
| so get back there. | 22:58 |
|
owen1
| i am back | 22:58 |
|
sobersabre
| and now, run chmod 644 /tmp/id_rsa.pub | 22:58 |
|
| so git can read it | 22:58 |
|
| and then repeat: su - git | 22:58 |
|
| and then the gitosis-init < /tmp/id_rsa.pub | 22:59 |
|
owen1
| ok. got Reinitialized existing Git repository in /home/git/repositories/gitosis-admin.git/ | 22:59 |
|
| (twice) | 22:59 |
|
sobersabre
| ok... | 23:00 |
| → lobolife joined | 23:01 |
|
owen1
| i still can't ssh with git@4p233434234 | 23:01 |
| ← pulpfiction- left | 23:01 |
|
lucasvo_
| how can I set the git username before committing in a pre-commit hub? | 23:01 |
|
| several people are working on the same git checkout and we want to be able to track who's doing what | 23:02 |
|
tomoj
| lucasvo_: why??? :( | 23:03 |
|
sobersabre
| now, the ssh problem... | 23:03 |
|
| owen1: I think you should increase server's logging verbosity. | 23:03 |
|
| 1. backup sshd_config file in /etc/ssh | 23:03 |
|
lucasvo_
| tomoj: because merging every half hour is too complicated | 23:03 |
|
owen1
| sobersabre: ok | 23:04 |
|
sobersabre
| are you there ? backed up ? | 23:04 |
|
| open the file /etc/ssh/sshd_config (on the desktop!) | 23:04 |
| → abw__ joined | 23:04 |
|
owen1
| sobersabre: it's open | 23:04 |
|
sobersabre
| change the line to Logging DEBUG | 23:05 |
|
| the "Logging INFO" | 23:05 |
|
owen1
| sobersabre: done | 23:05 |
|
sobersabre
| or .. just make it "VERBOSE", not DEBUG | 23:05 |
|
owen1
| ok. 1 sec | 23:05 |
| → fujin joined | 23:06 |
|
owen1
| done | 23:06 |
|
sobersabre
| ok ? | 23:06 |
|
tomoj
| lucasvo_: but.. now they can't even work at the same time, can they? | 23:06 |
| → pflanze joined | 23:06 |
|
pflanze
| How can one proceed a "git svn clone"? | 23:06 |
| ← sakyamuni left | 23:06 |
| → Paf joined | 23:06 |
|
offby1
| ? | 23:06 |
|
| pflanze: please rephrase your question; I didn't understand it | 23:06 |
|
sobersabre
| restart ssh | 23:07 |
|
owen1
| o | 23:07 |
|
| ok | 23:07 |
|
sobersabre
| on the desktop (invoke-rc.d ssh restart) | 23:07 |
|
owen1
| done. | 23:07 |
|
sobersabre
| now poll the logfile: | 23:07 |
|
| tail -f /var/log/auth.log | 23:07 |
|
pflanze
| After two git svn cloning jobs each running for 2.5 hours both have failed with "RA layer request failed: REPORT of '/svnroot/opalvoip/!svn/vcc/default': SSL negotiation failed: Secure connection truncated (https://opalvoip.svn.sourceforge.net)" | 23:07 |
|
owen1
| Server listening on :: port 22. | 23:07 |
|
pflanze
| I guess someone has restarted the servers on sf. | 23:08 |
|
owen1
| sobersabre: should i try to ssh? | 23:08 |
|
sobersabre
| owen1: ok, now, ssh, and during this look at the log. | 23:08 |
|
owen1
| ok | 23:08 |
|
sobersabre
| maybe you can see something fishy. | 23:08 |
|
lucasvo_
| tomoj: yes we can | 23:08 |
|
owen1
| Connection from 192.168.1.1 port 58481 | 23:08 |
|
| Failed none for git from 192.168.1.1 port 58481 ssh2 | 23:08 |
|
cehteh
| pflanze: for CVS sf once had a tarball download service for the whole repository | 23:08 |
|
owen1
| Failed publickey for git from 192.168.1.1 port 58481 ssh2 | 23:08 |
|
cehteh
| i wonder if they have such for svn too | 23:08 |
|
pflanze
| cehteh: I know, rsync. Was (is?) wonderful. But this is SVN. | 23:09 |
|
tomoj
| lucasvo_: how? what if I need to check out a different branch? everyone else's work will be wiped out | 23:09 |
|
cehteh
| thats in my experience much faster and more reliable | 23:09 |
|
Ilari
| owen1: Does it say more about why pubkey fails? | 23:09 |
| ← voker57_ left | 23:09 |
|
owen1
| Ilari: no | 23:09 |
| → voker57_ joined | 23:10 |
|
sobersabre
| owen1: edit logging to be debug. | 23:10 |
|
| Logging DEBUG | 23:10 |
|
| and restart the server | 23:10 |
|
owen1
| ok. 1 sec | 23:10 |
|
sobersabre
| then retry the connection, whilst polling the log | 23:10 |
|
| and tell us what's up with the public key. | 23:11 |
|
| I suspect it's still permissions/ownership. | 23:11 |
|
| on ssh server, but I'm not sure what and where. | 23:11 |
|
| owen1: you have a long path until the user's home dir. | 23:11 |
| ← tvw left | 23:12 |
| → hax0r1337 joined | 23:12 |
|
sobersabre
| I mean for user git. | 23:12 |
|
| I think some part of this path is world writeable or something like that. | 23:12 |
|
owen1
| the log shows the same. | 23:12 |
|
| drwxr-xr-x 5 git git 4096 2009-06-21 15:58 git | 23:13 |
| → Shadou joined | 23:13 |
|
owen1
| this is the git folder | 23:13 |
|
sobersabre
| chmod to 750 git | 23:13 |
|
owen1
| sobersabre: ek | 23:13 |
|
| ok | 23:13 |
|
sobersabre
| and retry to login as git user from the laptop. | 23:13 |
| ← qhoxie left | 23:14 |
|
owen1
| sobersabre: it was already 750 | 23:14 |
|
| i thinkg | 23:14 |
|
| drwxr-xr-x | 23:15 |
|
sobersabre
| this means 755 | 23:15 |
|
| r-x = 101 = 5 | 23:15 |
|
| rwx = 1 1 1 = 7 | 23:15 |
|
owen1
| sobersabre: so that's how to tell! thanks | 23:15 |
|
sobersabre
| so, can you login or NOT ? | 23:16 |
|
owen1
| sobersabre: no | 23:16 |
|
| the same | 23:16 |
|
sobersabre
| can you run this command on the server: | 23:17 |
|
| moment. | 23:17 |
|
pflanze
| offby1 / cehteh : seems one can continue by "cd $clonedir; git svn fetch" (not yet finished, so can't say for sure whether that works) | 23:18 |
| ← warthog9 left | 23:19 |
| → wsc joined | 23:21 |
| ← chris2 left | 23:22 |
|
offby1
| aah | 23:25 |
|
| pflanze: I've actually done that; it did indeed work | 23:25 |
|
pflanze
| c00l | 23:25 |
| ← Yuuhi left | 23:26 |
| → bremner_ joined | 23:26 |
| ← fujin left | 23:26 |
| Shadou → fujin | 23:26 |
| ← clug left | 23:26 |
| ← lobolife left | 23:27 |
| → rpag joined | 23:28 |
| ← dreiss left | 23:30 |
| ← ProperNoun left | 23:32 |
| ← rettub_ left | 23:32 |
| ← lbt left | 23:32 |
| → rettub_ joined | 23:33 |
|
offby1
| svn is so slow that, with a large project, the server is likely to time out at some point in the process :-| | 23:36 |
| ← Octalot left | 23:36 |
| → sgrimm joined | 23:36 |
| → romao joined | 23:41 |
| → qhoxie joined | 23:41 |
| ← rpag_ left | 23:43 |
|
Ilari
| owen1: I know one problem which would cause keypair auth to fail and is essentially impossible to debug... | 23:46 |
| → montylounge joined | 23:46 |
|
owen1
| Ilari: please share.. | 23:47 |
|
Ilari
| owen1: Mismatched keypair on client side. Really nasty tendency to lead to wild chase... | 23:48 |
|
sobersabre
| Ilari: you say he's created the keypair on different occasion ? :) | 23:48 |
|
| or diff. users ? | 23:48 |
| ← Martz left | 23:48 |
|
Ilari
| Nope, .pub key being for different key than the private one. | 23:48 |
|
sobersabre
| it is possible, Ilari indeed... | 23:48 |
|
owen1
| sobersabre: maybe. i want to remove all keys | 23:48 |
|
| sobersabre: from both machines. where are they stored? let's get rid of them. | 23:49 |
|
sobersabre
| start on the client only: | 23:49 |
|
| be that user on laptop, | 23:49 |
|
| and mv the keys into some ~/.ssh/old directory. | 23:49 |
|
Ilari
| There's way to get comparable IDs: 'ssh-keygen -y -f ~/.ssh/id_rsa | md5sum' dumps it for private key and 'cut -d \ -f 1-2 ~/.ssh/id_rsa.pub | md5sum' for public key. | 23:49 |
|
owen1
| sobersabre: ok. what about the * we changed on the server? | 23:49 |
| ← montylounge left | 23:50 |
|
sobersabre
| it doesn't matter. | 23:50 |
|
| since it works for root :) | 23:50 |
|
| anyway, run the ssh-keygen -t rsa again, when ~/.ssh has no keys (except the dir, and known hosts file) | 23:51 |
|
owen1
| sobersabre: ok. should i delete id_rsa and id_rsa.pub? | 23:51 |
|
Ilari
| owen1: Move them aside? | 23:51 |
|
sobersabre
| whatever you wish, you can delete, you can move. | 23:51 |
|
| I'm old-fashion person... so I move things. | 23:51 |
|
owen1
| sobersabre: delete and also the known_hosts. | 23:51 |
|
| sobersabre: one sec | 23:51 |
|
sobersabre
| I don't think you should ... | 23:51 |
|
| known hosts stores all the ssh servers' signatures... | 23:52 |
|
| the annoying "somebody's trying to look under your kilt" thingie is annoying. | 23:52 |
|
owen1
| sobersabre: why do i care? i am on the client now. | 23:52 |
|
sobersabre
| anyway, now, you need to sopy the id_rsa.pub file again, but make sure you put the NEW one on the desktop. | 23:53 |
|
| known_hosts is the client's file. | 23:53 |
|
| and it stores all the signatures of all ssh servers you've connected. | 23:53 |
|
owen1
| sobersabre: give me 2 minutes. | 23:53 |
| ← jrmuizel left | 23:53 |
|
sobersabre
| if the sigs change, the ssh client warns you. | 23:54 |
| ← robinr left | 23:55 |
| → lobolife joined | 23:55 |
|
sobersabre
| Ilari: ... what a tiredsabre I am. | 23:55 |
|
| didn't think of the case with mismatch at all. | 23:55 |
| → panpainter joined | 23:56 |
|
Ilari
| sobersabre: Its probaby very rare, one of the nastiest and getting ID out of private key one can compare to public key is not trivial. | 23:57 |
| ← panpainter left | 23:57 |
| ← hpoydar left | 23:58 |
| → panpainter joined | 23:58 |
| ← panpainter left | 23:58 |
| → memiux joined | 23:59 |