IRCloggy #git 2008-05-26

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2008-05-26

schacon_ joined00:01
pflanze left00:02
cypher23 left00:08
blix_ joined00:09
BabelO left00:12
fhobia joined00:14
johnw joined00:17
devogon left00:21
ironfroggy joined00:26
sintaxi joined00:33
larsl left00:35
sintaxi Im using git on a rails project and I just installed a plugin that was hosted on a git repo. now that plugin does not seem to be a part of my main apps repo. anyone know how to resolve this issue?00:35
felipec left00:45
mugwump left00:50
sbeyer left00:54
peeja joined00:54
sintaxi left00:56
chendo[work] joined00:59
chendo[work] New to git here; I want to revert a file to the previous commit00:59
git revert seems to revert a whole commit00:59
schacon_ left00:59
chendo[work] git reset -- <file> did what I wanted01:01
... or not01:01
jmworx is it possible to do a git-svn dcommit if I merged branches in the trunk? If so, what does it do? (both to svn and to my git repo)01:01
doener joined01:06
tcoppi left01:07
impulze joined01:08
kanru left01:09
IRSeekBot left01:09
impulze hi there. i used git-svn clone somerepos -r startref:HEAD and after that i wanted to use git-bisect start which shows "fatal: ref HEAD is not a symbolic ref" did i screw up or did i just forget to invoke something before bisecting?01:10
Mekham1 joined01:17
doener_ left01:17
Mekham1 http://enigmaengine.wordpress.com/2008/05/25/bring-back-the-fairness-doctrine/01:17
Mekham1 left01:17
spearce joined01:20
tcoppi joined01:23
Ken69267 left01:28
AndyP left01:31
ajonat_ joined01:39
ajonat left01:39
Ademan joined01:40
johnw left01:41
goibhniu left01:43
ggeecko joined01:45
ironfroggy left01:54
kukks left01:55
radarek left01:58
bdiego joined01:59
FunkeeMonk left02:01
bdiego left02:07
schacon_ joined02:08
krawek joined02:09
kewark joined02:16
imyousuf joined02:17
rwanderley joined02:22
lirit joined02:23
bdiego joined02:29
lirit left02:31
krawek left02:32
_krawek_ joined02:33
imyousu1 joined02:41
imyousuf left02:43
imyousu1imyousuf02:43
kewark left02:51
spearce` joined02:53
EiNZTEiN left02:56
nDuff left02:59
rwanderley left03:05
csc` left03:06
spearce`_ joined03:07
spearce left03:10
eternaleye left03:10
agib left03:15
spearce` left03:24
csc` joined03:27
spearce`_spearce03:32
schacon_ left03:34
vbabiy-laptop joined04:04
cmarcelo left04:04
chjunior left04:08
tjafk2 joined04:09
serfurj left04:13
serfurj joined04:13
eternaleye joined04:17
hacim left04:24
bobesponja left04:26
tjafk1 left04:26
ajonat__ joined04:32
ajonat__ajonat04:32
_krawek_ left04:34
vbabiy-laptop left04:35
madewokherd left04:39
MrDarkUser joined04:39
mugwump joined04:41
MrDarkUser I'm looking for a better tutorial for git than the ones directly listed on the home page04:44
step by step for making a new project... I think I've seen all the commands at the tutorials, but I'm not quite good enough with cvs or svn to have helpfull experience.04:45
mediogre joined04:45
clsdaniel joined04:51
ricky left04:51
ricky joined04:51
ajonat_ left04:55
angasule MrDarkUser: the lack of knowledge of cvs and svn is more likely to help than hinder. I recommend you create a test repository and play with it, to see exactly what each command does05:00
angasule_ joined05:10
brendon left05:22
angasule left05:25
robin joined05:30
schacon joined05:34
jdavis how do I export a git repo, similar to "svn export", so that it doesn't give me the ".git" directory?05:36
spearce jdavis: `git archive --format=tar HEAD | (cd ../otherdir; tar xf -)`05:38
jdavis spearce: thanks05:38
imyousuf spearce: just wanted to thank you in person about the jgit licensing :)05:38
now there is a possibility of us using it in our commercial product, thanks05:39
spearce imyousuf: given that irc is as in-person as i'll get with most folks i meet on online, i guess you are welcome. :)05:39
imyousuf :)05:39
spearce if you guys fix bugs in jgit, or add interesting features, we'd certainly appreciate you feeding them back to the project. :)05:39
imyousuf sure05:42
I will ensure that :)05:42
I have been advocating for GIT from a product of ours for some time05:42
nkallen left05:42
imyousuf the only obstacle was a IDE integration05:43
spearce well, jgit/egit isn't a full solution. yet.05:43
imyousuf I am working on one for NetBeans with JGit05:44
kixx joined05:44
imyousuf it was the basic features we need05:44
with NetBeans UI it will be perfect :)05:44
priidu joined05:45
spearce fortunately we've been trying to keep the bulk of our code down in jgit, where netbeans could use it.05:46
nkallen joined05:46
imyousuf yeah, I am grateful about it :)05:46
nud joined05:47
bdiego left05:49
blix_ left05:50
robin left05:59
spearce` joined06:06
schacon left06:07
Ademan if i pushed a change to a local repository owned by another user, and one of the commit hooks fired, what user would it be running as?06:11
deavid joined06:13
Ilari Ademan: It would be the user pusher logs as to push destination in ssh:// or whatever user git-daemon runs as in push over git:// (not recommended). HTTP push will not run hooks.06:16
IRSeekBot joined06:17
Ilari Ademan: For local pushes, the hooks in destination repository are run by the pusher...06:19
Ademan ah thanks06:20
kinda unfortunate, i hoped they were run by the owner, but i suppose it's no big deal...06:20
spearce left06:22
namenlos joined06:24
MrDarkUser angasule_ trying that ;) Oh I so want IDE integration. It looks like Git isn't very mature. (duh..)06:25
thiago_home joined06:25
Ilari Ademan: IIRC, Spearce made a hacked version of git-receive-pack that used suid and setuid() to run hooks and do writes as repository owner... Don't know if patches are available though...06:26
Xyri0 joined06:26
MrDarkUser Git Gui keeps asking for Revision Expression and stuff like that, I'm of course looking it up, but I don't have any idea why/what that would be.06:26
johan-s_ left06:27
igorgue left06:28
Ilari MrDarkUser: revision expression can e.g. be name of branch, name of tag, fully qualified refname (refs/heads/foo, etc...) or raw commit SHA-1 (or its abbreviation).06:29
MrDarkUser LOL, I tried just giving it a few random characters (I have nothing defined) and it wouldn't take em.06:30
anderbubble joined06:30
adante_ joined06:30
MrDarkUser I thought it was just a sort of identifier that I was specifying... and it seemed like it was being super selective06:30
nkallen left06:31
MrDarkUser so, when i was making a new branch, and it doesn't take a name that I'm giving it I get confused06:31
Ilari MrDarkUser: And then there can be nth parent (^n) and n iterated first parents (~n) operators appended to the end...06:31
MrDarkUser: Doesn't it ask for new branch name in seperate textbox?06:32
gitster "SPECIFYING REVISIONS" in git-rev-parse(1)?06:32
Ilari MrDarkUser: And one can select the base branch from the list of branches (there are three radio boxes that change what is show)...06:34
mjc joined06:35
MrDarkUser urm.. /var/git/t1test is my repository.. and I think I only have the main branch and no files06:35
mjc left06:35
MrDarkUser I'm trying to use the gui... I got a bit farther with the comand line on my other repository06:36
anderbubble left06:36
ben_h left06:36
Ilari MrDarkUser: You pushed to repository with working tree?06:36
Xyrio left06:37
Xyri0Xyrio06:37
MrDarkUser I think I need to shut up now... It's pretty easy to clone the git home page repository06:41
with the command line, but the gui seems nuts.06:41
nud left06:44
advany joined06:45
adante left06:46
adante_adante06:46
Auris- guis are for nuts.06:46
BabelO joined06:48
bentob0x joined06:54
charon joined06:55
clsdaniel left06:55
FunkeeMonk joined06:57
johan-s_ joined06:57
sbodo_w joined07:00
ph^ joined07:01
statim left07:04
redondos joined07:07
rphillips left07:09
nipuL left07:10
chendo[work] left07:11
pete__c left07:12
ph^_ joined07:15
mstormo pasky: ping07:18
Anyone else which has admin access to repo.or.cz?07:19
aarapov joined07:20
nud joined07:20
johan-s_ left07:21
ph^_ left07:24
ph^_ joined07:24
ph^_ left07:25
mcella joined07:30
mcella left07:32
mcella joined07:32
CrawfordComeaux joined07:51
statim joined07:51
csc` left07:52
thiago_home left07:54
floppyears hi guys07:59
what are some best practices when it comes to committing ?07:59
TuxCM- left08:00
sbodo_w left08:00
jengelh Don't commit crimes.08:01
aarapov left08:02
frsk You know it's early in the morning when you find yourself laughing of that :)08:02
CrawfordComeaux why git and not mercurial?08:05
thiago why mercurial and not git?08:05
I can ask the same question.08:05
mstormo lol08:05
cypher23 joined08:06
eMBee good afternoon08:06
imyousuf floppyears: in git branches, cherry-pick, filter-branch patches make it easy to make your own convention and tolerable to mistakes08:06
thiago good morning08:06
jengelh CrawfordComeaux: because git is better :p08:06
imyousuf so as long as the commit is representing a unit change I think it would be ok :)08:06
eMBee is there a tutorial for using git commit --interactive? i thought it would ask me if i want to commit one hunk at a time, but i can't see how to do that08:07
Ademan is there any git - mercurial interoperability around?08:07
CrawfordComeaux what's with coders always needing to be so damned sarcastic? it's 3am...I just would like to know why some people choose git over mercurial, or vice-versa...08:07
mstormo CrawfordComeaux: Topic branches are more light-weight in Git than in Mercurial. Though the patch queue concept is a neat idea..08:07
thiago Ademan: hg convert and hg-fast-export08:07
Ademan thiago: hrm, alright, thanks, i'll have to write that down lol08:08
thiago mstormo: I've been considering writing patch queue support in Git08:08
by using refs/patchqueue/name...08:08
it would work better than the solution that the hg developers came up with08:08
mstormo thiago: That's be very nice! Please do! ;-)08:08
thiago: I'll give you a cookie08:08
thiago my only problem is that I need to mark the initial commit somehow08:08
eMBee thiago: why would it work better? some inherent feature of git that makes it better?08:09
thiago or, to put it another way, I need to know which branch a patchqueue is meant to be on top of08:09
eMBee: yes, the git repository design08:09
redondos left08:09
eMBee ah08:09
thiago on hg that's easy: there's only one branch in each repo (in usual setups)08:09
eMBee doesn't stgit do something similar?08:09
charon left08:10
thiago never used it08:10
floppyears jengelh: hehe08:10
jengelh stgit is cool08:10
thiago a patch queue is nothing more than another branch in Git08:10
in fact, it *is* the recommended working procedure for Git08:10
eMBee how can i select parts of my current changes for a commit?08:11
thiago I'd be just making that a set of commands that match the Hg way08:11
mstormo eMBee: Parts of one file (hunks), or certain files?08:11
thiago in git we recommend that you do: checkout master, pull, checkout your branch, rebase08:11
eMBee mstormo: hunks08:11
floppyears imyousuf: I'm just wondering if it's best to have a bunch of small commits or only commit when I have a finished editing the file08:11
thiago that's exactly what the patchqueue concept does08:11
jengelh but the git porcelain itself is rather hard to work with in a stack fashion08:11
mstormo eMBee: If it's just the files, just git add <files> && git commit08:11
thiago eMBee: git add --patch08:12
mstormo eMBee: ^^^ :-)08:12
jengelh like, when amending a patch three commits downwards..08:12
you would use rebase with the normal git porcelain, which is a bit more work08:12
imyousuf floppyears: as I said, I am in favor of making each commit unit and not effeting any other task08:12
for this having a unit task is also important :)08:12
redondos joined08:13
eMBee thiago: thank you!08:13
imyousuf floppyears: concept of editing a file and making a commit are different.08:13
Arrowmaster when using 'git-archive tag' with .gitattributes export-subst, is there any $Format:$ that will give the tagname?08:14
mstormo floppyears: It all depends on you. Normally, it's nice that one commit is self-contained. Meaning that a commit doesn't obviously break something. However, you can still do many smaller commits locally, before you 'git rebase -i', and squash, reorder and change the commit msgs when you are done, and then finally push them into the public08:14
ricky left08:14
jengelh Arrowmaster: UGH.08:15
Arrowmaster: Oh, git-describe will.08:15
ricky joined08:19
spearce` left08:22
blondandy joined08:27
Eludias joined08:28
mcella left08:28
kixx left08:28
mcella joined08:29
floppyears thanks guys08:29
mstormo sure, np08:31
blondandy left08:31
jengelh pnp.08:31
npn?08:32
;p08:32
radarek joined08:33
thiago fet are cooler08:33
jengelh hmk gates are08:35
ben_h joined08:35
hein2 joined08:35
Sho_ left08:35
hein2Sho_08:35
CrawfordComeaux left08:36
hliusv561 thiago: MOS, MIS or MES? :-)08:36
thiago: Oh, and of course J... :-)08:36
yesudeep joined08:37
thiago MOS08:38
jengelh moosefet :)08:38
thiago much easier to calculate than PNP and NPN since there is no current in the base. There is no base :-)08:38
jengelh that's because all your base are belong to us08:39
ebel joined08:39
ben_h left08:40
ben_h joined08:41
hliusv561 Not to mention the quadratic (as opposed to exponential) dependency of current to voltage... Mixing exponential to linear terms easily creates equations with no solution in terms of elementary functions...08:42
ben_h left08:47
putrum joined08:53
koke joined08:54
CodeOfficer left08:56
hliusv561 As rough rule: MOSFET => Silicon, MISFET => Carbon, MESFET => Gallium Arsenide. :-)08:57
Ademan the man page for git-svn mentions /pub is that in the fhs? i didn'09:02
t think it was09:02
yeah i don't see it09:03
wgaffa joined09:04
mstormo grmbl..09:06
Anyone know how I can update a remote HEAD with a symbolic ref?09:06
Kbyte joined09:07
hliusv561 mstormo: And presumably you can't get shell on that machine with account allowed to write to it?09:08
mstormo nope, it's on repo.or.cz :-)09:08
Kbyte left09:08
Kbyte joined09:09
mstormo For some odd reason, the HEAD that I get from the repo I just pushed _is_ a symref, and points to a non-existing branch09:09
it points to refs/heads/devel09:09
devogon joined09:09
Kbyte left09:09
Kbyte joined09:10
radarek left09:11
hliusv561 mstormo: And presumably 'git push <repo> HEAD' does something wonky...09:11
Ademan any git-svn users know if this is a good way to go about things: git-svn clone the remote svn repos, then have myself and a few other developers interact with this git repository as though it were our collective public git repository and if need be, commit upstream using git-svn rebase and git-svn dcommit09:13
thiago no, it isn't.09:14
you should commit to svn, not push to git09:14
hliusv561 Ademan: Git-svn is not suitable for distributed development. SVN is just too limited.09:14
radarek joined09:16
gitte joined09:16
mstormo hliusv561: Well, my local repo shows the correct HEAD, and result on 'git branch', but 'git push --force HEAD' says "Everything up-to-date". However, a fresh clone from that remote repo ends up with a different symref (non-existing) in HEAD, and says "Warning: Remote HEAD refers to nonexistent ref, unable to checkout."09:16
Ademan thiago: doesn't that mostly defeat the purpose of using git-svn at all?09:19
thiago Ademan: not at all09:19
guardian joined09:20
johnw joined09:20
thiago Ademan: git-svn is very useful for branching, merge-tracking, annotating locally, etc.09:20
and not having to remember the svn commands09:20
Ademan haha09:20
thiago uses Git for his Git, Subversion and Perforce projects09:20
thiago the point being: only one person should be using git-svn in each git-svn import09:22
if you want more people to use the repository, they can, but they mustn't use git-svn. They should use git only.09:22
and they should know that they have to rebase against the SVN imports, never merge.09:22
Ademan thiago: well that's sorta what i'd saying, they'd push and pull to that single git-svn repos, which would communicate with upstream if need be09:23
well, that may not be what you're saying though...09:23
thiago that repos might be updating automatically from SVN09:23
but committing to SVN automatically is a bad idea09:23
jengelh svn is a bad idea.09:23
thiago one person should do the committing if necessary09:24
Ademan thiago: well it wouldn't be automatic, in fact that's why it's important that my development group has it's own internal 'master' copy09:24
thiago Ademan: http://code.staikos.net/cgi-bin/gitweb.cgi?p=webkit;a=summary is a good example09:24
Git-based development on top of a Subversion source, using git-svn09:25
as you can see from that webpage, the "svn/master" head is moving, but master isn't09:26
Ademan indeed09:26
i don't even see a master lol09:27
thiago right, I meant the main branch (called "qtwebkit" there)09:27
the one that gitweb shows by default09:27
Ademan ah09:28
yeah09:28
pergesu joined09:28
thiago what happens there is an interesting case: to submit to WebKit's mainline branches, you need the patch to be approved09:29
or you need to be a known committer09:29
so only a few people can cherry-pick and submit to SVN09:29
chris2_ joined09:30
chris2_chris209:32
Ademan ergh, why does svn have to complicate things... lol09:32
pflanze joined09:33
thiago it doesn't.09:33
svn works very well if you're content with one-branch development09:33
and centralised09:33
johnw left09:36
sbeyer joined09:37
fhobia left09:37
jamessharpe joined09:39
Ademan thiago: well, my friend and i are working on a website using turbogears 2.0 which is under heavy development. I expect things will turn up broken very often, and we'll want to fix it right away, not waiting for upstream to approve patches and all that. I figured that would work with a single git-svn repository that spits out a working copy when needed, and two satellite normal git repositories.09:40
Sho_ left09:45
priidu left09:45
imyousuf left09:47
priidu joined09:48
mugwump Ademan: probably bzr works better in cases like that09:49
if you want to use git you will have to have a *single* git-svn bridge09:49
priidu left09:51
Sho_ joined09:53
gitte pasky: is it possible that you installed a submodule-unaware git on repo.or.cz?09:53
priidu joined09:53
Ademan_ joined09:55
Ademan left09:56
hliusv561 gitte: That would have to be 1.5.1.X or older than that (altough there are some submodule-related bugs fixed in later versions)... I don't think that's likely. Gitweb doesn't support submodules very well however...09:56
Ademan_Ademan09:56
gitte hliusv561: just try to clone msysgit.git, and weep when you do not get 1bdd3b0f84f2ffeb9f08fce80c8ddc3e76c17210.09:56
hliusv561: I finally found out that this is a commit of Junio's 'html' branch.09:57
pasky: it could be that it is only git-pack-objects (possibly git-upload-pack, too).09:57
priidu left09:58
Ademan thiago: i dunno if my last message before i was disconnected made it through09:59
_graham_ joined10:00
hliusv561 Ademan: The longish message about turbogears 2.0 at 0940Z?10:01
priidu joined10:01
Ademan yep10:01
so i guess it did make it through10:01
was anything said in response?10:02
pasky gitte: in ssh chroot or outside (gitweb, git-daemon)?10:02
gitte pasky: "git clone git://repo.or.cz/msysgit.git"10:02
ChanServ set mode: +o10:02
Mikachu changed the topic to: 1.5.5.2 | Homepage http://git.or.cz/ | GSoC 2008 Is On! | Everyone asleep or clueless? Try [email@hidden.address] | Channel log http://colabti.org/irclogger/irclogger_log/git | Mailing list archives: http://marc.info/?l=git | Gits on git: http://tinyurl.com/2xq3ke | You want $ID?: http://tinyurl.com/yqpgv9 | Need to paste something?: http://git.pastebin.com10:02
Mikachu set mode: -o10:02
thiago Ademan: "my friend and I are working..."10:05
that's the last10:05
Ademan thiago: indeed, did you have anything to say regarding that? because it seems to be the most logical solution, but it sounds as though... i can't or shouldn't10:06
thiago no10:06
pasky gitte: that's curious... but... hmm10:07
gitte: can you remind me about it later plz?10:07
pasky also hoped to finally install the ssh keychange patch but turns out he has no time for anything but the thesis for the last few days :/10:08
gitte pasky: when's your thesis over?10:09
hliusv561 pasky: Hopefully you have systems in place for monitoring and dealing with bruteforcing attempts on SSH keys? :-)10:10
gitte hliusv561: he just said that he does not have time, so give him a break, will ya? ;-)10:10
pasky gitte: end of this week, but I'd like to finish the content part today so that I can send it around to few people for review10:11
Ademan brute forces access on pasky's machine10:11
Mikachu if you're worried about your project you can log into the admin page and add new users and remove the old ones10:11
gitte Ademan: no luck: only gits.10:11
Mikachu: I already removed all my endangered users.10:11
Pieter hmm10:24
perhaps we can include the "git describe" output in "git log", for the people that really want some sort of revision number10:24
Xyri0 joined10:26
tokkee Does anybody know the reason for the commas used in the Subject-line generated by post-receive-email? Imho it would be correct to leave them out...10:27
Pieter: tig does that for tags and heads.10:28
goibhniu joined10:29
Pieter post-receive-mail?10:30
ricky left10:30
Pieter oh, the hook10:30
ricky joined10:31
jas4711 left10:35
Arrowmaster being able to get 'git-describe' output in a $Format:$ replacement for git-archive would be great10:35
entropy joined10:35
entropy i just realized that several commits ago a file that was meant to be renamed ended up being cleared (zero byte size) in the destination. how can I (re)copy the deleted file from before it was deleted to overwrite the cleared copy I now have?10:37
Xyrio left10:37
Xyri0Xyrio10:37
gitte Arrowmaster: is it not?10:40
Arrowmaster from the docs it doesnt seem like it10:41
Pieter I think you might be able to do that with gitattributes?10:41
entropy left10:41
Arrowmaster you can do the replacement when using git-archive with gitattributes10:42
but afaik there isnt a replacement that gives the git-describe output10:42
gitte It's not hard to code. AFAIR I even posted a patch to the list, once upon a time.10:43
Arrowmaster: search for it, clean it up, and push for inclusion.10:43
mstormo Hmm, entropy fell out without an answer?10:44
heh, impatient guy10:44
gitte maybe he goes back to CVS.10:45
mstormo lol10:45
Pieter there's already10:45
E.g. the string $Format:%H$10:45
will be replaced by the commit hash.10:45
tokkee Pieter: Yes, the hook ;-)10:45
gitte Pieter: that is not exactly the output of "git describe".10:46
Pieter oh10:46
doh, I forgort what we were talking about10:46
forgort :)10:46
might be nice to add a git-describe option in --pretty for git log10:47
janm joined10:48
heidaro joined10:50
lu_zero left10:54
lu_zero joined10:54
gitte Pieter: that is exactly what we were talking about.10:57
Pieter: hopefully, Arrowmaster searches the mailing list for my patch right now, brushes it up and reposts it.10:57
Arrowmaster i dont think thats possible10:58
gitte Arrowmaster: then I have nothing more to tell you.10:58
imyousuf joined10:58
Arrowmaster my c is very very rusty10:58
gitte 's manners, too10:58
qiyong joined10:58
qiyong How I put a website under SVN10:59
http://www.advogato.org/person/coywolf/diary.html?start=1310:59
any comments are welcome.10:59
Pieter gitte: do you know around when you posted that?10:59
gitte Pieter: no.10:59
Pieter: but I could imagine that searching the mailing list for "pretty" and "describe" _could_ turn out something useful.11:00
Arrowmaster http://article.gmane.org/gmane.comp.version-control.git/63392 ?11:02
charon joined11:03
Pieter it'd be nice if gmane could export a mbox of search results11:03
ajonat left11:05
gitte Arrowmaster: I think that is too old.11:07
Arrowmaster november 0711:08
dsyzling joined11:10
gitte Arrowmaster: Given that there were massive restructurings in the code in February by Marco, I think this is a bit too old. You can try to start from there, though.11:13
dsyzling left11:15
advany left11:16
dsyzling joined11:19
ben_h joined11:21
koke_ joined11:22
Fullmoon left11:24
imyousuf left11:27
Fullmoon joined11:34
ironfroggy joined11:35
ironfroggy left11:37
koke left11:38
pclouds joined11:43
bentob0x left11:44
chris2 left11:47
mcella_ joined11:55
tobstarr joined11:58
tobstarr hi11:58
is there a command to repair a git repository?11:58
when I try to clone I get an error like that11:58
remote: error: remote: unable to find 888a2927b65889465ce7a1a71e87d37640a2b41bremote:11:58
remote: fatal: remote: unable to get type of object 888a2927b65889465ce7a1a71e87d37640a2b41bremote:11:58
mcella left12:00
thiago git fsck12:00
tobstarr that command is not available on my server12:01
do you know the debian package for that?12:01
ironfroggy joined12:02
deavid left12:02
icry0000 joined12:03
tobstarr missing blob 888a2927b65889465ce7a1a71e87d37640a2b41b12:03
broken link from tree f24e68956d05713b67a96730d2a44c8f9713923912:03
to blob 888a2927b65889465ce7a1a71e87d37640a2b41b12:03
but how can I fix that?!?12:03
Mutru_Mutru12:04
ironfroggy left12:04
flaguy left12:05
koke_ left12:05
Pieter find the missing blob12:06
look for other copies of the repository if they have that object12:06
thiago run "git show 888a2927b65889465ce7a1a71e87d37640a2b41b" in other copies of that repo12:07
ben_h left12:08
tobstarr git show says bad object12:09
thiago try another repo12:09
Pieter tobstarr: http://thread.gmane.org/gmane.comp.version-control.git/40893/focus=4089612:09
tobstarr: http://thread.gmane.org/gmane.comp.version-control.git/64091/focus=6421312:10
git ls-tree f24e68956d05713b67a96730d2a44c8f97139239 will show you what file is missing12:11
that might help with replacing it12:11
pclouds left12:12
pclouds joined12:12
tobstarr thanx a lot12:14
I do have a copy of the missing file12:14
no I have to find out how to replace it12:15
Pieter git hash-object -w <file>12:15
that should be enough12:15
namenlos left12:16
namenlos joined12:16
kukks joined12:17
tobstarr hmm12:18
Unable to add ... to database?12:18
gitte write-protected?12:18
pclouds left12:19
tobstarr nope12:19
gitte (I mean the database)12:20
tobstarr where is it?12:21
gitte In .git/, where else?12:21
tobstarr the hole git folder is writable12:21
jengelh disk full?12:21
folders are for windows..12:21
tobstarr sorry12:23
disk is not full12:23
gitte Can you read <file>?12:24
(I.e. you did not really call "git hash-object -w <file>" _verbatim_, did you?)12:25
lcapitulino joined12:29
gitte Hey lcapitulino!12:30
lcapitulino gitte: hi!12:32
gitte lcapitulino: do you have a GSoC project this year, too?12:32
fearoffish left12:32
lcapitulino no, I don't. I wouldn't have enough time to work on it :(12:33
gitte Are you employed by now?12:33
lcapitulino yeah12:33
how is git this year? Lots of students? :)12:34
gitte Yes, more than last year.12:34
redondos_ joined12:34
lcapitulino great12:34
Pieter I wonder if gittorrent's going to work out this year12:38
gitte Probably. We have a very capable mentor, and a very capable student.12:38
(Actually, we had 2 candidates, but one of them found another project he preferred to work on)12:38
deavid joined12:41
Pieter if all the gsoc projects work out, and we have builtin merge and rebase, the builtinification will be almost complete12:42
d0k joined12:44
ramontayag_ joined12:44
gitte Yes.12:44
gitte is happy.12:44
ramontayag_ramontayag12:44
redondos left12:45
redondos_redondos12:45
gitte wonders if tobstarr is still there.12:47
Pieter repack.sh and pull.sh seem to be mostly option parsers :) so the big ones are am, bisect, stash, submodule and send-email12:47
gitte send-email will never be builtin.12:47
(Just a guess, but an educated one.)12:47
You missed mergetool and instaweb, BTW.12:49
Pieter yeah, it would be no fun and not very useful12:49
I didn't really consider instaweb as part of core git12:49
ramontayag hey everyone. i'm new to git but i know subversion. i started to try to move today (trying to host my repo at assembla.com.. but i think i entered the wrong passphrase. how do you change the passphrase? now, all i get is, when i try to upload code, is http://pastie.caboo.se/203401. is this a git thing or a linux thing?12:52
halorgium ramontayag: do you have a local branch called master ?12:53
ramontayag halorgium - eep, entering "git branch" doesn't show anything12:55
Mikachu is your head detached? did you make commits on it?12:56
halorgium Mikachu: he should still have a branch though, right?12:56
Mikachu unless he deleted it somehow? but it's weird12:57
Pieter halorgium: not if he never committed anything12:57
Mikachu ah right, it isn't a clone of an existing repo then?12:57
halorgium Pieter: you have an empty branch if you do 'git init'12:57
nud left12:57
nud joined12:57
Mikachu halorgium: you can't push it until you make a commit12:57
ramontayag i can try to restart the whole thing. i guess i followed the assembla instruction w/o making sure what it was. i did "git init" then i tried to push it.12:58
hsuh joined12:58
Tv halorgium: refs/heads/master won't exist after git init12:58
koke joined12:58
Mikachu ramontayag: you have to commit before pushing12:58
ramontayag when pushing, i was asked to enter my passphrase, which it said it was wrong. then i started getting that error everytime i'd try to push.12:58
ah12:58
Tv halorgium: HEAD may point to it, but it doesn't exist12:58
Pieter halorgium: and thus git branch won't show anything12:58
hsuh hi guys.. is it normal for git to change file modes ? like i just cloned to a pendrive repo, then i git status and all files appear modified.. and then i git diff and the modifications are that the old mode was 644 and new mode 75512:59
halorgium Tv: ah, right12:59
i have the bash prompt which shows the current branch12:59
it was showing 'master'12:59
Mikachu hsuh: fat doesn't support executable permissions12:59
ramontayag oh12:59
takes getting used to :o12:59
hehe.. so, now that i'd added and committed12:59
hsuh Mikachu: whats the usual solution to things like this?13:00
ramontayag i can push it? :) will get back to you guys13:00
Mikachu hsuh: use another filesystem? :P13:00
hsuh i'm copying to windows at work...13:00
Tv hsuh: only put bare repos on the usb stick?13:00
ramontayag cool thanks halorgium, Mikachu13:00
hsuh Tv: what do you mean? just cp -a my repo?13:01
qubodup joined13:01
Tv hsuh: zip/tar/whatever the files?13:01
qubodup left13:01
hsuh how unpractical is that? :)13:01
Tv hsuh: ehh, definitely no13:01
hell, tar/zip might be a lot faster than pure fat13:01
oliver3 joined13:01
hsuh what about git-dont-you-touch-file-modes?13:01
Tv fat directory operations are hellishly slow13:01
hsuh: it's not git doing it13:01
hsuh oh no?13:01
Tv hsuh: it's your mount command default options13:02
hsuh oh, i see..13:02
Mikachu either all files are -x or all files are +x13:02
Tv umask=13:02
most often -x is nicer for usb sticks13:02
hsuh hm13:02
Tv or fmask=13:02
oliver3 Hi, me and another dev have been working on the same code (without realising), now we need to decide who's code to keep, and who's to drop, or whether we can merge the two branches together. His code is on his machine, mine on mine, how could I pull in his code without clobbering mine?13:03
Tv oliver3: git fetch13:03
oliver3 Tv, thanks!13:03
:D13:03
Mikachu oliver3: that's the intended mode of operation with git13:04
oliver3 Tv, that doesn't seem to have done anything at all...13:04
orion_ joined13:05
hsuh maybe ill try to format it as ntfs? would everyone be happy then ?13:05
Tv oliver3: if you want us to help, give details13:05
oliver3: (and read the man page)13:06
SRabbelier joined13:07
oliver3 Tv, there are two of us currently working on this program. We have a central public git repository which we push to every so often. We have our own local clones of the central repo. We have both edited the same set of files, and need to decide who's copy to keep. I need to get a snapshot of his repo in a separate branch of my local copy.13:07
Pieter oliver3: push his changes to separate branch on the central repo13:08
then you can fetch that13:08
oliver3 Hrm yes, thanks.13:08
:D13:08
deavid left13:08
deavid joined13:09
EmilMedve joined13:11
orion_ has anyone written a programming API around git (besides bash?)13:11
Tv orion_: yes13:12
Pieter there are like 3 ruby api's13:12
and some python projects have created their own git api13:12
orion_ anything strongly typed like java?13:13
Pieter I don't think so, but there's jgit13:13
Tv wouldn't the eclipse plugin need something like that?13:13
Pieter which is a reimplementation of git in java, but in alpha stage13:13
Tv i think the intersection of java and git is still pretty slim13:13
Pieter yeah, egit uses jgit13:13
gitte: False is capitalized in python :)13:17
gitte Okay.13:17
etnt` joined13:17
putrum left13:18
etnt left13:18
yesudeep1 joined13:20
shenson_not_here left13:21
icry0000 left13:22
mcella_ left13:31
yesudeep left13:32
oliver3 How would I completely ditch my local changes, and replace with the contents of another repo?13:33
oliver3 bashes his head against the wall in despair13:33
glommer joined13:34
Mikachu oliver3: it would be more productive to read the documentation while you wait13:38
oliver3 Mikachu, I _am_.13:38
I can't find anything like "git undo", to undo my accidental git pull13:38
I now have an incorrectly merged repo13:38
Half of my changes, and half of someone elses.13:38
Which are incompatible.13:38
I'm tearing my hair out here.13:38
Mikachu depending on if the merge succeded you want git reset --hard HEAD or git reset --hard HEAD^13:39
oliver3 Mikachu, none of those commands did what was needed.13:40
I have a file which both me and another dev have edited.13:40
I need his copy, not mine.13:40
I have my copy, his copy is in the central repo13:40
git fetch does _nothing_...13:40
Mikachu so you want to throw away all your work and use his?13:40
just to make sure13:41
oliver3 Yes13:41
Pretty much13:41
Mikachu if you've run git fetch on his repo, his branch should be stored in the temporary FETCH_HEAD ref13:42
so you can git reset --hard FETCH_HEAD13:42
oliver3 Didn't work13:42
Mikachu usually one would set up a remote with git remote add foo repo-url, and then git fetch foo, then git reset --hard foo/master13:42
oliver3 Now I don't have his copy of the file, or mine, now I have an old version from before we both began work on the file.13:42
Mikachu then you probably didn't fetch the correct branch from his repo13:43
oliver3 Mikachu, we have a remote repo, he has already pushed his changes.13:43
I'm trying to get those changes.13:43
And at the same time, remove mine.13:43
Mikachu well, if you fetch the correct branch, it should work out13:44
oliver3 I am...13:44
Mikachu is this repo publically available?13:44
oliver3 There is only one branch on the central repo, master.13:44
Aeternus_ left13:44
Tv oliver3: the thing is, we don't trust you when you say that13:44
oliver3: and you aren't providing any details13:44
oliver3 Mikachu, yes, http://git.savannah.gnu.org/gitweb/?p=kaiser.git13:44
Tv, what more details do you need?13:45
I want to clobber my changes, and get his.13:45
Aeternus_ joined13:45
Mikachu the super easiest way is to throw away your repo and reclone13:45
you can't fail then13:45
Tv oliver3: well things that "i'm now at commit <sha>, his head is <sha>, i ran this exact command, output is on this pastebin, but my head is still <sha> -- why?"13:45
s/that/like/13:46
SRabbelier left13:46
SRabbelier1 joined13:46
SRabbelier1SRabbelier13:46
hsuh left13:47
oliver3 Tv, oh, my god. I _do_ have the master of the central repo. He hasn't added the damn file to his commit. brb going to stab him in the face.13:48
Tv git push other-developer off-his-chair13:48
oliver3 Tv, Mikachu thanks for your help.13:48
Lol Tv13:48
Mikachu haha13:48
i was confused earlier when git said master was an ambiguous ref, but i only had one in git branch -a, it turned out i had a .git/master for some reason that i had to find by myself13:49
holizz joined13:50
qknight joined13:51
qknight i've accidentialy added a .svn dir to my git repo (didn't commit yet) how do i remove that?13:51
bentob0x joined13:51
qknight i don't want to delete the file as git rm does (or am i wrong?)13:52
dato qknight: git rm --cached .svn13:52
holizz git rm --cached .svn13:52
qknight thanks13:52
oh well13:54
git status said:13:54
# Changes to be committed:13:54
# (use "git rm --cached <file>..." to unstage)13:54
Mikachu git reset .svn would also work13:54
qknight sorry for not reading this .. ;P13:54
ruphy Tv: loool :D13:56
qknight Mikachu: even before i do a commit?13:59
serfurj left14:01
Mikachu qknight: only then14:03
krawek joined14:03
mcella joined14:05
qknight Mikachu: ok14:06
thanks for the help!14:06
kewark joined14:07
jstrom left14:08
qknight i've done: echo ".svn" > .gitignore in my project dir (where .git can be found as well) and git status tells me still that .svn is not tracked altough it shoul be ignored now14:08
oh no14:08
all right14:08
i moved the file into the wrong directlry14:09
how nice git is!14:10
thiago I don't think git and svn in the same checkout is a very good idea...14:13
wait, no, I'm thinking of a different problem14:13
it should be ok14:13
deavid left14:17
schacon_ joined14:23
krawek left14:24
namenlos left14:26
cmarcelo joined14:28
deavid joined14:31
Pieter Beginning with the referenced commit, the git project cannot be checked out on Cygwin (and I assume cannot be checked out on Windows using msysgit, though I have not verified this) as this commit introduces the file "t/5100/nul." On Windows, the file name "nul" is reserved, regardless of path, and cannot be created or deleted. It serves essentially the same function as /dev/null.14:32
that's just genious14:32
kewarkkrawek14:33
thiago yeah14:33
there are some reserved paths that Windows doesn't allow14:33
"aux" is another14:33
Mikachu you could crash windows 98 just by typing nul/nul in the run dialog14:33
or something along those lines anyway14:33
cygwin should have workarounds for things like that14:35
it's supposed to provide a posix environment, isn't it?14:35
thiago I don't think it handles filenames with characters not accepted14:36
dionoea Hi. Is it possible to checkout a branch from a clone in a seperate directory? (If that makes any sense)14:36
thiago you can't have a + in a filename either14:36
dionoea: git-new-workdir14:36
Tv Pieter: oh even better is that access to con: on windows used to hang14:36
impulze left14:36
Tv Pieter: like, <img src="con:"/>14:36
Mikachu ah, maybe it was con, not nul14:36
Pieter :D14:36
Tv or file:///con$, something14:37
dionoea thiago: hum ... I don't have that command here (debian sid)14:37
Pieter dionoea: it's in contrib/ and not included by defaul14:37
t14:37
dionoea ah ok :/14:37
bentob0x left14:37
thiago and you should use git 1.514:37
dionoea git version 1.5.5.114:38
Pieter dionoea: http://git.kernel.org/?p=git/git.git;a=blob;f=contrib/workdir/git-new-workdir;h=7959eab902d28bb3307c542514ca4c5f49deee0f;hb=2d3922dc611e4615bc2a8a151f2e382d44971aed14:38
dionoea thanks14:38
bobesponja joined14:40
dionoea awesome! that's exactly what I wanted. Thanks a lot.14:42
Mikachu just be sure not to check out the same branch in two workdirs14:42
Pistos joined14:42
madewokherd joined14:42
Pistos I know this is discussed extensively and in vary degrees of detail on the web, but I'm trying to wrap my head around some best practices for merging as considered from the old school angle of cvs/svn.14:43
tobstarr left14:43
Pistos I've made some changes on a branch which I'd like to now pull into master. Should I use fetch, merge, or pull, or what combination?14:43
Pieter hmm14:43
I don't get git fast export and renames14:43
Mikachu pull = fetch + merge14:43
Pistos Mikachu: Okay, that's what the websites seem to say.14:43
Mikachu it doesn't matter if you use pull or merge14:44
Pistos So if I want to "play" the diff patch of the branch "onto" my master, but not commit yet, what do I execute?14:44
dionoea Mikachu: ok.14:44
Mikachu Pistos: it doesn't matter if you commit yet or not, but you can do git merge --no-commit thebranch14:44
Pistos: you can always amend the commit afterwards, or undo it14:44
Pistos Mikachu: I see.14:45
So then it's more "proper" to merge than to pull?14:45
unreal_ joined14:45
Mikachu generally you use pull when you want to merge something from a remote repo but not set up any tracking branches for it14:45
for merging local branches, "merge" and "pull ." are pretty much identical14:45
unreal left14:46
unreal_unreal14:46
Pistos Mikachu: Okay, thanks, that clarifies things.14:46
Pieter blegh14:46
Pistos I appreciate your time.14:46
Pieter this is so broken14:46
Mikachu if you like to be roundabout, you can git fetch foo; git merge FETCH_HEAD14:47
wgaffa left14:54
ggeecko left14:55
eMBee good evening14:55
mugwump: remember our discussion about adding a different branch handling to git-svn? i am reading the code now and i can't really figure out where to start. are you familiar with git-svn at all?14:57
brosner joined14:58
bdiego joined15:02
gitte left15:06
Ace_NoOne joined15:08
Ace_NoOne hi there - does Git use some kinda cache? after rebooting, the first git-status (or similar command) always takes a while (500-800 MB SVN repo)15:09
broonie The OS caches file accesses; git doesn't do any of its own, it relies on the OS.15:10
Mikachu after rebooting you sort of have to check the files to be sure they weren't modified15:12
even if you were to have some sort of cache + daemon15:12
Pistos Is there a sort of "git ls" I can do in refs/* to see what tags and branches and things I have?15:14
Mikachu 'git branch (-a)' and 'git tag'15:14
or /bin/ls15:15
Pistos heh15:15
Alright. I only ask because I was trying refs/branches/branchname, but that was failing so I googled to learn that it's refs/heads/branchname15:15
comp greetings, will git modify files during merge if newly merged files are matched by .gitignore? or will it resolve this as a conflict?15:15
or just "ignore them" :)15:16
Mikachu .gitignore only affects untracked files when doing git status15:16
or git add15:16
Razerblader joined15:17
Razerblader left15:17
comp my problem is that I want to pull from the upstream but I have already only part of that repo (usable as submodule) ... however I need to deal with things like modifying files in that submodule during pull in that "superproject"15:18
Mikachu i think that's a case of "you get to keep the pieces"15:19
kumbayo joined15:20
comp the problem isn't in updating the submodule itself, but in superproject possibly writing into the submodule15:20
i think the "better way" would be to merge it into the superproject and maintain only one repo, but how to do that? how to change those paths?15:21
ggeecko joined15:21
Pistos left15:22
comp (from the submodule view, it's ./file1 , from the superproject it's some/long/path/file1)15:22
so cherry-pick probably won't work here15:23
ramontayag left15:24
SRabbelier left15:24
schacon_ left15:24
SRabbelier1 joined15:24
SRabbelier1SRabbelier15:25
EmilMedve left15:25
Pieter Hmm15:31
when I give "checkpoint" to git-fast-import, it's not really exporting marks15:32
igorgue joined15:33
Ace_NoOne thanks broonie and Mikachu (sorry, was called away there)15:34
schacon joined15:39
comp ... and can git share object files between remotes? for example I want to have "clean" repo as master and add another remote (which is for example a fork) that has most of its blob objects identical to mine ... but it seems that git download everything for each remote separately ...15:40
Mikachu it only compares commit objects15:41
comp ah15:41
so if there are some old commits, any newly merged (in that remote) will have different SHA-1s, so ...15:41
Mikachu as long as what you fetch and what you have, have a common history, things should work fine15:42
for separate histories with the same files, probably not so much15:42
ToxicFrog Ick.15:43
Aren't blobs identified by sha1 as well?15:44
Mikachu yes, but there are very many blobs15:44
comp the situation was a problem in privilegies .. I decided to let others to create their own forks themselves rather than giving them privilegies on my own repo (can't restrict them to one branch)15:44
sbodo_w joined15:44
comp so in this case, I would have to duplicate many blobs and many MBs ...15:44
Mikachu i started running git rev-list --objects --all in linux-2.6.git one minute ago, it's still going15:45
ToxicFrog Yeah, but checking to see if you already have them isn't very expensive - it would be nice to at least have an option to save bandwidth by doing the iteration+stat() necessary to see what actually needs to be transferred.15:45
comp ...and stored15:45
Mikachu % git rev-list --objects --all|wc -l15:46
82216715:46
git rev-list --objects --all 39.05s user 1.54s system 46% cpu 1:26.38 total15:46
ToxicFrog So around 20k objects/second.15:46
schacon left15:46
ToxicFrog Even if we assume checking existence is one tenth the speed of listing them - which seems very pessimistic - that's still way faster than network copy speed in most cases.15:47
pete__c joined15:48
Mikachu i think most people would be bored if every push / fetch of linux code took 1.5 minutes + network transfer15:49
ToxicFrog So make it an off-by-default option.15:49
comp I'm doing a small test15:50
the problem for me isn't in bandwidth ...15:50
it's 50*5MB anyway ... and only once15:50
ToxicFrog For that matter, it already has to iterate over all the referenced objects in the commits to build the list of stuff to send15:50
comp but 50*5 instead of 50MB of disk storeage .. that's something15:51
storage15:51
Mikachu ToxicFrog: you want to iterate over all objects in every commit in history on both ends though15:51
ToxicFrog Oh, right, as it is only the sender needs to do it...15:51
comp: ok, that strikes me as very weird15:51
All the objects are stored in $GIT_DIR/objects/ regardless of branch, right?15:51
Mikachu comp: it won't actually store the objects twice15:52
ToxicFrog And they're stored by sha1sum?15:52
Mikachu comp: you might need a repack -ad to combine the packs15:52
comp Mikachu: just testing it15:52
jast only if they're not stored in pack files15:52
ToxicFrog So if the same object is used by multiple commits it should be stored only once...15:52
jast that's right15:52
putrum joined15:52
comp (rebasing 1200 commits in a test repo so they will get different checksums)15:52
Mikachu that won't test anything like what happens in your fetch15:53
you'll just get 1200 new (unique) commit objects15:53
putrum left15:53
Mikachu or you're going to fetch it to somewhere else? that might work15:54
putrum joined15:54
comp I'm gonna fetch15:54
and see if the space gets duplicated :)15:54
hope it won't15:54
jast identical objects don't get stored twice15:54
comp that's the way it should work15:55
jast that's the way it does work15:55
comp so if the fork has 99% of blob objects identical to mine, only tons of commit objects with different sha1s, fetch will download everything but store only changed (new) blobs (and trees).. ?15:57
charon left15:57
jast that's the way i understand it15:57
redondos left16:00
Fullmoon left16:01
comp there's some magic in it16:01
it downloaded only 4MB16:01
and the repo is 4MB larger16:01
so it perhaps does some calculations about blob objects16:02
(whole repo is 65MB large)16:02
csc` joined16:04
orion_ left16:04
loops left16:05
flaguy joined16:06
p4tux joined16:07
ggeecko left16:09
lcapitulino left16:10
_zack joined16:10
johan-s_ joined16:12
ggeecko joined16:14
johan-s_johan-s16:14
comp ... so if there's no way how to merge a submodule into superproject (including commits) I will have to create them by hand I guess..16:15
ggeecko left16:16
sbodo_w left16:17
ejs joined16:18
lcapitulino joined16:19
ggeecko joined16:21
ggeecko left16:23
rphillips joined16:24
Kbyte left16:25
Ace_NoOne left16:25
wferi joined16:26
blix_ joined16:27
ggeecko joined16:27
vmiklos comp: subtree merge?16:28
comp exactly16:28
got that idea right now16:28
:)16:28
I used it instead of submodules before16:28
ToxicFrog ponders submodules16:30
ToxicFrog This could be useufl.16:30
comp but I don't need it in fact ... as I'm moving to new master (another svn-rebased one) soon so I will have to manually re-create the history (conflicts, ....)16:30
using dangling object as features ...16:31
s/object/objects/16:31
ejs left16:32
gregf joined16:36
namenlos joined16:37
mcella left16:40
nud left16:43
guardian left16:44
oliver3 left16:46
ckknight left16:46
blix_ left16:46
ggeecko left16:47
ggeecko joined16:48
wferi Hi! I'm in a git clone, how can I find out what it's a clone of?16:50
Mikachu git remote show origin16:50
or cat .git/config16:50
if it's a bare clone, you can't16:50
wferi thx16:50
CodeOfficer joined16:50
wferi If I do a git-push --dry-run --all, it complains about some branches being non-fast forward.16:51
How can I find out what happened?16:51
jengelh well obviously you replaced them16:52
Mikachu or someone else did a commit, if it's a shared repo16:52
wferi Sure, it is.16:52
jengelh and no one told you heh?16:52
wferi no. why should have?16:52
jengelh contradiction.16:53
Mikachu you have to fetch and then either rebase or merge before you can push16:53
wferi branch by branch?16:53
Mikachu yes?16:53
wferi ?16:53
Mikachu what was the other option?16:54
wferi I'm confused about the branch stuff.16:54
jast in general you can't merge several branches at the same time because conflicts may arise16:54
wferi If I fetch, do I fetch all the branches?16:54
Mikachu yes, usually16:54
wferi ok16:54
Mikachu unless you changed the config16:55
wferi So I have to fetch, then see the log of each non-fast forward origin/* branches16:55
if I want to get a picture what causes the problems, right?16:55
jast you can do that, yeah16:56
jengelh well it's obvious16:56
Mikachu you can gitk --all but it might be messy16:56
jast but you can also assume that people pushed new commits to these branches16:56
jengelh what you are trying to push does not have the remote's tip as an ancestor16:56
jast because the only other possibility is that they did evil things16:56
wferi No, they aren't evil, just doing some work.16:57
jast my point exactly :)16:57
wferi I'm simply interested in what they did, before I rebase.16:57
namenlos left16:57
jengelh git log -p HEAD...origin/master16:57
wferi after a fetch?16:58
jengelh yes16:58
jast something else you can do is look at git cherry16:58
Mikachu i like the new log --graph16:58
niki joined16:58
jast no wait16:58
that was wrong. you can do that but it's not useful for this situation. :}16:58
wferi They git-log -p trick is neat, though.16:59
loops joined16:59
Mikachu i would probably use .. and not ... since you already know what changes you did16:59
wferi What's the difference?16:59
between .. and ...?17:00
how can I find the common ancestor of HEAD and origin/master?17:00
Mikachu ... shows both yours and their commits since the common ancestor17:00
while .. only shows the rhs17:00
p4tux left17:00
Mikachu git merge-base HEAD origin/master17:00
eikonos joined17:01
wferi Ah, changes from HEAD to origin/master doesn't make sense after all.17:01
jengelh git log --graph is still no match for forest17:01
artistic wise :)17:01
wferi How can I change the origin URL of a clone?17:02
charon joined17:02
Mikachu wferi: git remote add nickname URL17:02
wferi nickname=origin?17:02
Mikachu if you want, you can delete the remote "origin" and use origin as the nickname17:02
jeckel joined17:02
jast see also: git remote rm17:03
koke left17:03
wferi ok, so I have to delete the current origin.17:03
jengelh just edit it in the config, no need for rm17:03
Mikachu if you want it to be called origin, yes17:03
wferi great.17:03
jast you ca also edit .git/config17:03
koke joined17:03
wferi thanks for the help, guys, no evaluating your answers...17:03
s/no/now/17:03
SRabbelier left17:05
redondos joined17:05
SRabbelier1 joined17:05
SRabbelier1SRabbelier17:05
Sho_ left17:07
kanru joined17:10
Sho_ joined17:15
alley_cat joined17:20
jeckel left17:23
jeckel joined17:23
nud joined17:24
koke left17:24
d0k_ joined17:27
guardian joined17:28
jeckel left17:28
jeckel joined17:28
d0k_ left17:29
deavid left17:33
d0k left17:34
dave_h_d joined17:35
igorgue left17:36
shaftyy joined17:36
robin joined17:37
ph^ left17:39
ph^ joined17:39
brosner_ joined17:43
brosner left17:43
brosner_brosner17:44
threeve joined17:44
igorgue joined17:49
alb joined17:49
sohail joined17:50
sohail good day17:50
I was wondering if it was possible to use git-svn to import a revisionr ange17:50
putrum left17:51
Ilari sohail: AFAIK, at least importing from specified version forward is possible...17:51
sohail Ilari, well I was thinking the easy way to do it is to do ane xport of the repo in question and import that into git17:52
but that doesn't sound like anyone but me knows whats going on which is never good17:52
angasule_angasule17:54
sohail so Ilari I tried git-svn clone -r N http://foo/bar .17:55
and it doesn't seem to do anything17:55
alley_cat left17:56
Mikachu is the . part of your command?17:57
sohail Mikachu, yes17:57
floppyears quick question17:57
Mikachu sohail: remove it17:58
sohail Mikachu, ok!17:58
floppyears I use a library, and the devs use svn17:58
Mikachu the man page says you can use I:J ranges for the revision17:58
jengelh please please don't use svn17:58
sohail Mikachu, still didn't seem to download anything17:58
jengelh, a project I'm tracking does17:58
floppyears can I use git-svn to create a copy of that svn library17:58
and in my project use git-submodule to keep that library to the latest nightly17:59
Ilari floppyears: If you do that, you should also publish a copy of that library repo with your main repo...17:59
holizz left18:01
floppyears thanks Ilari18:01
peeja_ joined18:01
Xyri0 joined18:02
nud hello18:06
I've got some pain to get git mktree work as expected18:06
here is what I get: http://pastebin.com/m4866ff2b18:07
albertito left18:07
nud in fact, it writes into the tree that the commit is a 'blob', despite I tell it it's a 'tree'18:07
yesudeep1yesudeep18:07
jast what commit?18:08
Pieter you'r missing an e18:08
hah, me too18:08
nud hrm18:08
alley_cat joined18:09
nud updated link: http://pastebin.com/m7d17ae4718:09
jast: there is no commit in the game18:10
jast oh, then that was a typo in what you said :)18:10
igorgue left18:10
jast afaics from mktree.c, it verifies the type of the objects listed in your tree based on the existing object with that ID18:10
in fact it should fail if the object doesn't exist or has a type mismatch18:11
(that's git 1.5.5.1)18:11
nud I have that version18:11
doener nud: trees seem to have mode 04000018:11
nud hm18:12
it works with that mode18:12
funny, does the tree format only rely on the mode?18:13
Xyrio left18:13
Xyri0Xyrio18:13
doener the word "tree" in the output is probably just for human consumption18:13
nud is there some documentation lying somewhere about the modes?18:13
ec left18:14
albalbertito18:14
holizz joined18:14
dsyzling left18:15
wferi left18:15
dirk1296 joined18:16
thiago_home joined18:17
peeja left18:17
nud this denotes some incoherence on how git-mktree works18:20
it looks like it checks the object type against the "human readable" type but writes the information according to the mode18:20
rubydiamond joined18:21
FunkeeMonk left18:22
blix_ joined18:23
deavid joined18:24
alley_cat left18:25
threeve left18:25
d2dchat_ joined18:29
d2dchat left18:30
d2dchat_d2dchat18:30
alley_cat joined18:33
pergesu if someone sends me a patch and I apply it with "git apply", but the patch fails, how do I modify it and do a clean merge? I know that if I merge two branches and have a conflict, but resolve them, then git knows how to resolve that for others. So I'd like to have that same behavior when applying a patch18:34
djwonk_ left18:36
vmiklos git am -3?18:36
yesudeep left18:36
jast apply is a rather low-level command18:36
drizzd joined18:37
thannoy joined18:39
pergesu vmiklos: this patch was made with "git diff sha > blah.diff", not git format-patch. So I don't know if I can use git am? At least it complains that there's no email address18:40
Pieter pergesu: no way to merge anything then18:42
Mikachu yeah, i would expect git-apply to have more of the patch specific functions that git-am has, while git-am only adds the ability to apply several patches from an mbox18:42
vmiklos you can just add a fake header18:42
tglx joined18:43
alley_cat left18:44
_zack left18:47
floppyears what protocol does git use when it pulls from another repo? ssh, rsyn or http ?18:48
Mikachu or git18:48
ggeecko left18:48
etnt joined18:48
ggeecko joined18:48
frsk Depends on the repo's hosting18:49
pergesu left18:49
floppyears ah18:49
Mikachu if you write git:// it uses git, if you write ssh:// it uses ssh, etc18:50
sbeyer .o( or "filesystem", if the other repo is on the harddisk )18:50
felipec joined18:53
kristoffer joined18:54
ebel left18:57
EiNZTEiN joined18:58
Xyri0 joined18:59
alley_cat joined19:00
mediogre left19:01
dsyzling joined19:01
pflanze Is there a tool to output the path to the git repository directory currently being used?19:02
Pieter git rev-parse --show-cdup19:02
or --git-dir19:03
pflanze ah the latter, yep, thanks19:03
funny that this is in the revision parsing tool :)19:03
Xyrio left19:10
Xyri0Xyrio19:10
Pieter anyone know of a OSS project with a git repo of around 30MB? :)19:16
jengelh Git.19:16
Pieter yeah, something that doesn't use octopus merges19:17
:)19:17
jengelh what you got against octopussies?19:17
felipec Pieter: I just created a clone repo of the pidgin's one19:17
Pieter: it's 29 MB and no merges19:17
Pieter jengelh: most importers crash on / ignore them19:17
jengelh mine does not19:17
Pieter felipec: I'd like a real git repo, not an import19:17
jengelh: what does it import to? :)19:18
jengelh a local directory?19:18
felipec Pieter: I did it myself, well, my script, commit by commit19:19
Pieter felipec: yeah, but I'd like a repo that uses merges and so19:19
nud I have a 28M copy of a git-svn project import (gedit)19:20
probably doesn't qualify since it's a svn import19:21
EiNZTEiN left19:21
Pieter yeah :)19:21
SRabbelier: impressive git-stats repo you got there ;)19:21
SRabbelier Pieter: awesome huh? :D19:21
Pieter: will probably switch to a python script19:22
I wanted to get more done today but I still have a project for school to finish this week19:22
d2dchat left19:25
d2dchat joined19:26
alley_cat left19:28
Pieter I'll use the coreutils repo19:29
alley_cat joined19:29
ekidd joined19:29
advany joined19:31
ajc2008 joined19:31
gregf left19:32
ajc2008 is there a way to compile git without the git-gui/gitk requirements? I don't want to have to install lots of X libraries on my server but the standard git library doesn't seem to compile without Tk installed19:33
nud ajc2008: you can pass options to make19:34
ajc2008 I just don't know what options ;)19:34
nud vi Makefile ;-)19:34
for instalce make NO_TCLTK=119:34
instance*19:34
doener you can also put that into config.mak19:35
ajc2008 Thanks :)19:35
Xyri0 joined19:37
d2dchat left19:41
d2dchat joined19:42
robin left19:42
robin joined19:42
robin left19:42
robin joined19:42
robingittish19:43
csc` left19:48
ajc2008 left19:48
rubydiamond left19:49
ajc2008 joined19:49
Ingmar left19:50
Ingmar joined19:51
Xyrio left19:55
Xyri0Xyrio19:55
glommer left19:57
koke joined19:59
vbgunz left20:01
advany left20:01
csc` joined20:02
xl0 joined20:04
xl0 Hi. I thought it was possible to remove some top-level commits in a public repo using git-push, but can't find how exactly this is done..20:05
kristoffer left20:05
eald left20:06
Ilari xl0: Remove them from local repo (possibly creating backup branch) and 'push -f' it?20:06
xl0 Ilari: tried it, and it says Everything up-to-date.20:07
Ilari xl0: Are those commits you want removed from remote side removed from local side?20:08
xl0 Ah, I has to specify the local branch name too. ;)20:09
Thanks a lot. ;)20:09
sohail left20:10
radarsat1 joined20:11
dirk1296 left20:12
radarsat1 left20:12
radarsat1 joined20:14
janm left20:15
shaftyy left20:16
daaku joined20:18
radarsat1 left20:18
alley_cat left20:20
daaku if i'm currently in my-branch, and my-branch is a fully-rebased branch of origin, is there a way to say replace origin with my-branch and dont change any of the files (since they dont need to anyways)?20:21
they only merge i know is to switch to origin first, but i dont want the files to go back to that state (running apps are using these files)20:22
priidu left20:23
fhobia joined20:24
ggeecko left20:25
jast 'switch to origin'? do you have a branch called origin? typically origin is the name of the default remote created by clone20:26
mario_ joined20:26
xl0 left20:27
pygi left20:27
mario_pygi20:27
alley_cat joined20:30
ggeecko joined20:30
chris2 joined20:31
Ilari daaku: Origin is not a branch (unless repo has some really obsolete configuration).20:31
intripoon joined20:32
intripoon hi20:32
where can I set core.autocrlf = true on windows ?20:32
or check what its current setting is20:32
Ilari intripoon: 'git config core.autocrlf'? 'git config core.autocrlf true'?20:33
intripoon since when does this variable exist?20:34
I have one user using git 1.5.4.2.1161... and one using 1.5.4.960... and the later one doesn't seem to have that setting20:35
git config core.autocrlf prints nothing there20:35
Mikachu Author: Linus Torvalds [email@hidden.address]20:36
Date: Tue Feb 13 11:07:23 2007 -080020:36
Lazy man's auto-CRLF20:36
jast afaics it was introduced in 1.5.120:36
intripoon and pulling from that repository doesn't merge the files efficiently meaning it creates a file with one conflict where the first part is the complete one file and the 2nd part is the complete other file20:36
tagx left20:37
jast it prints nothing because no value is set by default20:37
try Ilari's second command. :)20:37
Arrowmaster on msysGit its in git-config --system core.autocrlf by default20:37
intripoon ok20:38
so how would I go about merging our work now?20:38
the pre 13th feb rep exist and my exist20:38
if I pull the pre 13th feb version in my, the merge screws up20:39
lolage0 joined20:41
daaku sorry, i meant master20:43
Ramune joined20:44
shauber so, has anyone here managed to get git (any version) compiled on Solaris 9/SPARC? Since I can't seem to find any binary downloads...20:45
i've been fighting with it for a week now20:45
BabelO ph^: pH5 you ? have a problem with git track, i did not see mainline change :(20:46
oups sorry, wrong channel20:47
Ademan left20:49
thesaint4444 joined20:51
BabelO hi, that s time it is the right channel, i ve used git --trackto create a branch which track mainline linux kernel, when i update my branch with git fetch && git pull origin .... , i did not get mainline change ? is that normal ? what i miss ? thanks20:51
thesaint4444 hi guys, I have a problem with a git, capistrano setup. Do I have to have passwordless ssh setup? thanks.20:52
to deploy the git repo....20:53
jast BabelO, you did clone from the linux repo, i assume? in what way? how exactly did you create the branch?20:53
thannoy left20:53
Ilari daaku: 'git update-ref refs/heads/master my-branch' would update branch 'master' with what 'my-branch' currently points to...20:55
daaku: Note, the first name (the ref to update) really needs to be fully qualified.20:55
Mikachu hm, maybe that's how i created .git/master in my git.git repo20:58
nkallen joined20:58
Ilari Mikachu: Yes, 'git update-ref master ...' does unwanted stuff... :-)20:58
jast probably better to use push in order to avoid spreading the use of plumbing20:58
BabelO jast: i ve used git branch --track htc-omap origin/mainline to create branch htc-omap whcihc is tracking mainline20:58
jast BabelO, try git pull without arguments in that branch (that's what --track is for, after all)20:59
BabelO jast: so only solution is git merge origin/mainline ?20:59
koke left21:00
BabelO jast: i ve tried, but still old ... i use merge then, thanks .21:00
jast because when passing arguments to pull you need to use the correct refspec21:00
JRV joined21:01
daaku Ilari: sweet! exactly what i needed21:01
JRV Hi, does any of the graphical git tools allow splitting hunks into smaller ones yet?21:02
BabelO jast: thanks21:02
Mikachu git-gui has for a long time21:02
JRV Mikachu: hm, maybe my version is too old21:02
that would be "git citool", right?21:03
RandalSchwartz what work flow results in asking that question?21:03
lcapitulino left21:03
RandalSchwartz I mean, when would you want a commit to have parts?21:03
Ademan joined21:03
JRV When reworking patches along a different dimension, I might want to separate two logical changes in a hunk?21:04
jast when you're doing large-scale surgery but later decide you want to split it into smaller commits21:04
i've had it happen myself21:04
RandalSchwartz yeah, ok, haven't had it yet.21:05
shauber i take it that would be a "no" then?21:06
Mikachu RandalSchwartz: it happened to me a lot right after i switched to git and i had some svn checkouts with lots of unrelated changes in them21:06
not of my projects, that is, so i couldn't commit them with svn, but with git(-svn) i can have local commits, so splitting hunks with git-gui / git add -p was very helpful21:07
JRV hm, so in my version (0.8.4) of git-gui, it doesn't seem to be supported yet21:07
maybe I should get a newer one21:07
RandalSchwartz ahh - once again, SVN is part of the equation21:07
Mikachu JRV: right click and choose increase context / decrease context21:07
RandalSchwartz averts his eyes21:07
Mikachu RandalSchwartz: or cvs of course21:07
JRV Mikachu: yeah, but that doesn't always help21:07
cliffstah joined21:07
JRV What about lines that are adjacent or have only one line between them? Then it says the hunk doesn't apply anymore... Or is that a problem I will always have?21:08
eald joined21:08
Ademan left21:09
JRV What I mean is that I have to shrink the context to such an extent that the patch can't be applied anymore because it doesn't know where to put it.21:09
Eludias left21:09
alley_cat left21:10
BOOKZ_ if I have two branches, can I remove a directory from one of them, and ignore subsequent changes when merging from the other branch21:12
gittish JRV: Micachu: git gui doesn't split hunks. It does selective staging of individual hunks21:12
BOOKZ_ typically, a dev branch with a test dir and a live branch without it21:12
JRV gittish: yep, but you can make the hunks somewhat smaller by decreasing their context sometimes21:13
gittish: so in effect, you can split hunks to an extent as a side-effect of that21:14
gittish I did not count that as hunk splitting21:14
JRV it isn't really, in the sense of 's' in git-commit --interactive21:14
gittish It would have to handle the one line context in between to count21:14
JRV yeah, that is what I'm missing21:14
gittish I'd like that too. Patches welcome :21:14
TuxCM joined21:15
JRV Well, I saw a thread already about that21:15
BOOKZ_ currently, I get messages like: CONFLICT (delete/modify): test/zlonk deleted in HEAD and modified in master. Version master of test/zlonk left in tree.21:15
gitte joined21:15
gittish for deleted replaced lines one could to with no context. Somewhat dangerous though.21:16
BOOKZ_: that means you have to decide what to do. Git doesn't know.21:17
bdiego left21:17
gittish it isn't fatal per se21:17
BOOKZ_ yes, I know, and how can I tell git what my decision is?21:18
thesaint4444 left21:18
BOOKZ_ "ignore the test directory in this branch, until I change my mind"21:19
JRV gittish: http://lists-archives.org/git/640447-teach-git-gui-to-split-hunks.html21:19
Ilari BOOKZ_: To declare conflicts in file resolved: 'git add <file>'.21:19
igorgue joined21:19
BOOKZ_ Ilari: except the conflict resolved by removing the directoy and its content21:22
Ademan joined21:22
BOOKZ_ is resolved21:22
Ilari BOOKZ_: Then 'git rm <file>'.21:23
holizz left21:23
BOOKZ_ $ git rm -r test21:23
fatal: pathspec 'test' did not match any files21:23
I removed these files in an earlier commit21:24
(on that branch)21:24
RandalSchwartz on both sides of the merege?21:24
or just one side?21:24
BOOKZ_ on one side only21:24
RandalSchwartz then rm -rf test21:24
and see what git-status says21:24
BOOKZ_ nothing to commit21:25
RandalSchwartz good to go then21:25
the merge commit will remove those files then21:25
BOOKZ_ how do I commit, it it tells me there's nothing to commit?21:26
RandalSchwartz are you still in a merge?21:26
BOOKZ_ yes21:26
RandalSchwartz git commit :)21:26
gittish git add -u to update the index21:27
RandalSchwartz that too21:27
gittish i.e. remove the conflict marks (non stage 0 entries)21:27
BOOKZ_ ah that might be what I missed21:29
nud left21:29
gittish was that the only conflict?21:29
BOOKZ_ $ git add -u21:29
fatal: test/zlonk: unable to stat (No such file or directory)21:29
yes21:30
gittish hmm21:30
BOOKZ_ maybe I should have git rm'ed ? rather than just rm ?21:30
daaku left21:30
gittish I'd like to think add -u would do that21:30
tzafrir_home joined21:31
Ilari BOOKZ_: Maybe git rm it...21:31
gittish git rm --cached <dir>21:31
BOOKZ_ ok, git rm + git add -u + git commit did it21:31
Mikachu have we established what version of git this is?21:31
BOOKZ_ 1.5.521:31
Mikachu not that then21:32
BOOKZ_ and I guess everytime something changes in the unwanted directory, git will bring the changes in21:32
which seems fair21:32
tzafrir_home any idea how I can set certificate for authentication for usage with git-svn?21:32
BOOKZ_ I wondered if their was a way to say "ignore this directory from now on"21:32
gitignore doesn't seem to be it21:33
RandalSchwartz edit .gitignore?21:33
Mikachu gitignore is about untracked files21:33
RandalSchwartz it won't ignore tracked files21:33
Ilari tzafrir_home: Client certificate?21:33
tzafrir_home Ilari, yes21:33
dave_h_d left21:34
tzafrir_home I can't seem to figure this from docs, source and some web search21:34
RandalSchwartz averts his eyes at the mention of svn21:34
Mikachu i think git-svn will just use whatever configs you've set up for svn21:34
Ilari RandalSchwartz: Even worse: Client certificates are involved. :-)21:35
tzafrir_home Mikachu, I was optimistic as well21:35
RandalSchwartz there's no relative rings of hell21:35
it's just Hell21:35
tzafrir_home Sadly it doesn't21:35
Mikachu hope they weren't generated on debian :)21:35
Ilari Or Ubuntu.21:35
BOOKZ_ oh, I added a file, it was merged automatically21:36
tzafrir_home On the same system I have pooled the same directory with SVN and it works just fine21:36
BOOKZ_ mmm, this proves a little trickier than I thought... it's not impossible, but it requires somes manual fiddling every time21:36
Ilari BOOKZ_: Generally that sort of stuff is done the other way: The side branch adds something.21:37
BOOKZ_ ok21:37
markkalderon joined21:38
BOOKZ_ we're currently trying to decide if we want our code and our tests in the same repo or not, and I thought, deployement could be done from a live branch, which could not include the tests21:38
BOOKZ_BooK21:39
gittish Cherry-picking is also a way of solving these kinds of problems, sometimes21:39
Mikachu i would maybe just fetch && reset --hard origin/master && rm -rf tests21:39
gittish BooK: why don't you just skip the tests in the deployment then?21:40
BooK that's the other options, yes :-)21:40
just evaluating the possibilities, at the moment21:40
gittish automating the rm's seems like an option too21:41
BooK deployment implies copying files on a bunch of servers, so skipping one directory isn't so hard21:41
the fact that the test files are here doesn't force anyone to actually run them ;-)21:41
I wonder if I would have the same problem with unwanted files21:42
RandalSchwartz you could even git-archive a subset21:42
and then unpack that .tgz multiple places21:42
BooK ok21:43
felipec left21:43
EmilMedve joined21:47
BooK thanks everyone21:52
johnreilly_ left21:55
joelr1 joined21:55
joelr1 good evening! has anyone set up access with git-shell on solaris (joyent perhaps?)21:57
dsyzlin1 joined21:58
dsyzlin1 left21:58
kumbayo left21:58
context joelr1. ask your real question now21:59
joelr1 context: well... i set up a user with git-shell but cannot pull now22:00
d2dchat grrr22:00
joelr1 i can ssh to the box as the user and get a reply from git-shell: fatal: What do you think I am? A shell?22:00
but i cannot clone and cannot pull22:00
fatal: The remote end hung up unexpectedly22:00
context: end of real question22:00
MrDarkUser left22:00
ebel joined22:04
dsyzling left22:05
sabooky joined22:05
Ilari joelr1: Maybe the URL is wrong? Git is not very good at reporting bad URLs (if they point to valid servers)...22:06
joelr1 Ilari: i can pull using my primary account and the same path to repo22:08
of course that account does not use git-shell22:08
Ilari joelr1: Does that other user have sufficient file-level permissions?22:09
ph^ left22:09
joelr1 Ilari: they belong to my group and the repo has group read/write permissions22:10
Ilari: the other user has the same group id22:11
Ilari: the repo does not live in their home directory so i give them the full path to mine22:11
Ilari joelr1: And you gave that full path also when you tested with your account?22:12
joelr1 Ilari: yes, i just replaced the user name in the command22:12
Ilari joelr1: Can SSH set environment variables (could be useful for debugging this)?22:14
joelr1 Ilari: on the server? i have root access. what do i need to do?22:14
Ilari joelr1: There is environment variable GIT_TRACE, that when set to 1 causes git commands to dump exec tracing info...22:15
joelr1 Ilari: where do i place it?22:15
Ilari joelr1: No idea. git-shell does not have run control files, so you need to force that setting from SSH level...22:17
deavid left22:17
joelr1 Ilari: thanks! googling for env vars with ssh22:17
sergio joined22:18
pergesu joined22:19
jast man ssh_config, see SendEnv22:19
joelr1 jast: thanks. no SendEnv in my man page22:21
threeve joined22:21
jast hmm. i don't know when it was added22:21
ekidd left22:21
jast joelr1, here's an idea for additional tests: give that user a normal shell and try various git operations directly on the server22:22
threeve left22:23
joelr1 jast: ok22:23
jast: i set up .ssh/environment in the users home dir22:24
trace: exec: 'git-upload-pack' '/home/fjj67yaa/git/bridge'22:24
trace: exec failed: No such file or directory22:24
is there a special syntax for absolute paths?22:25
Ilari joelr1: It doesn't find 'git-upload-pack'.22:25
joelr1 Ilari: what's that?22:25
jast one of git's binaries22:25
devogon left22:25
Ilari joelr1: The repo it is trying to access is '/home/fjj67yaa/git/bridge', which looks reasonable.22:25
saintdev left22:25
gittish there is an option to specifiy the path to the binaries22:26
Mikachu i believe the man page for git-push says how to configure that22:26
joelr1 ls -la /opt/local/bin/git-upload-pack22:26
-r-xr-xr-x 1 root root 343244 Mar 19 22:37 /opt/local/bin/git-upload-pack22:26
it's the same directory where git-shell lives22:26
JRV left22:26
comp is there any way how to "merge" two branches with "almost" same tree and blob objects, but different commit hashes? ... I need to "synchronize" my local git-svned branch into our "official git-svned branch" and don't want to go through resolving conflicts ...22:26
Ilari joelr1: How was that git installed? From source? What put those files in that location?22:27
brosner left22:27
joelr1 it's not clear from the error whether it's not finding git-upload-pack or the repo itself22:27
Ilari: it's pkg-src22:27
jast you could try setting PATH in ~/.ssh/environment22:27
Mikachu it's pretty clear since it says "exec failed"22:28
_graham_ left22:28
joelr1 fair enough22:28
jast comp, only manually (e.g. format-patch)22:28
joelr1 setting path ...22:28
path was it, i think22:30
comp jast: so reset to the oldest and cherry-pick my oldest commit, then pull new things up to my next commit and so on ...22:30
jast comp, that sounds a lot more complicated than it should22:30
tglx left22:30
jast comp, what kind of differences are there between the two repos?22:31
joelr1 thanks you guys!22:31
Ilari Hmm... git-shell does set the path for the CVS case, but not the Git pack transfer case... Why it doesn't set the path for the other case?22:31
comp jast: my custom changes that I would like to keep on my branch there ... with some resolved conflicts ..22:31
and, ... commit sha1s22:32
joelr1 left22:32
comp as git-svn generates new ones everytime (as it's intended for one-man-usage I suppose)22:32
Mikachu git-svn imported commits are usually identical22:32
jast that's my experience too. i had no problems syncing.22:33
comp well, my problem isn't in this22:33
but I git-svned only from certain point22:33
and they want full history from 122:33
jast hey, that's actually possible?22:33
comp yep ..22:34
-r22:34
jast ah22:34
comp so different parents ...22:34
jast well, as i said, git format-patch and git am (on the other side) is probably easiest22:35
comp will the time and date of creating a commit get over cherry-pick ?22:35
jast: I can do it on my local machine ...22:36
mtodd__mtodd22:36
jast do what? cherry-pick is a lot more work than format-patch and am, anyway22:36
comp (just pull the "oficial git-svned repo"22:36
jast: I used git-format-patch and git-am only for some easy tasks, but I'll try it22:38
jast i would suggest something like the following: 1) clone official git repo, 2) git format-patch your own commits (with --stdout and redirect to file), 3) git am them in the clone of the official repo, 4) push from the clone22:38
comp but what's the difference between git-format-patch and git-cherry-pick anyway?22:38
(I mean the final result)22:39
jast format-patch can handle any number of commits, while cherry-pick only does a single commit22:39
peeja_ left22:40
jast i believe there is no notable difference in the end result22:40
pergesu left22:40
comp the problem is that my commits aren't in sequential order (like in git-cherry) .. I have lots of merges from upstream there as well22:40
pergesu joined22:40
jast merges from svn? svn doesn't have merges22:41
comp I'm making custom changes to some project that uses svn22:41
RandalSchwartz why aren't you rebasing your changes on top of the current upstream head?22:42
jast using merge when you're dealing with svn stuff is usually not a good idea22:42
comp one day, they decided to provide a git-svned mirror for those, who can't commit to the oficial svn, but wants to pull easily between each other22:42
well, yes, there's a rebase solution ... but I wanted to keep the history22:43
RandalSchwartz rebase keeps history22:44
ebel left22:44
comp interactive rebase?22:44
jast do you really need your commits to stay strewn all over the place? all rebase does is pull them all to the top of the branch, keeping their internal order22:44
comp jast: yes .. and I need to resolve conflicts between my oldes commit and the newest clone22:45
glommer joined22:45
jast i don't see any problem. feel free to use cherry-pick on every single commit if you think that's the best solution, though.22:46
brosner joined22:47
comp well ... so at least I can filter out many commits which I reverted afterwards and so on ...22:47
etnt left22:49
spearce joined22:50
dsaxena joined22:50
dsaxena left22:50
cedric_ joined22:54
sergio left22:54
dsaxena joined22:55
cedricv left22:55
MrDarkUser joined22:56
BabelO left22:57
MrDarkUserX joined22:57
comp I can't believe it22:59
just did git rebase oldbranch ...22:59
it printed few errors22:59
but it doesn't look like rebase result22:59
(in tig)22:59
daaku joined23:01
comp http://rafb.net/p/2pm5OU66.html23:02
but the standard merge had many conflicts23:02
_zack joined23:04
thiago_home left23:05
_zack left23:06
intripoon left23:08
comp anyway, git rebase has --preserve-merges which can help ...23:09
spearce` joined23:12
comp left23:15
MrDarkUser left23:16
dsaxena left23:16
pasky *scarily-illuminated maniacal face within darkness* grooow my thesis grooow23:18
RandalSchwartz you forgot "bottom-lit"23:18
jengelh and perhaps stencil-shadowed23:19
pasky right right right >:)23:21
chris2 left23:21
pasky mhm, I wish bzr repository format would be better documented though23:21
igorgue left23:22
spearce` what, its possible to document a format less than git is documented?!?!?23:23
spearce left23:23
spearce`spearce23:23
pasky spearce`: git is documented pretty well23:23
though the documentation is slightly hard to read in this particular case ;)23:23
pasky ponders about a leading quote for his thesis23:23
cehteh i once read extensive docs about the bzr format23:23
pasky like...23:23
Always give a person as much rope as possible. This is so when you do pull the lever, he swings real good.23:23
-- S. Short23:23
cehteh: oh oh, pray tell, where to get it? :)23:24
cehteh but they changed the underlying format serveral times since then in extreme ways -- prolly they got bored about maintaining the docs :)23:24
pasky ah23:24
cehteh pasky: was when bzr began :)23:24
comp joined23:25
pasky hmm i like the Short quote more and more ;))23:25
pergesu left23:25
igorgue joined23:27
pasky If you steal from one author it's plagiarism; if you steal from23:27
many it's research.23:27
-- Wilson Mizner23:27
RandalSchwartz there's actually a table of rope lengths based on weight23:27
pasky I think this one would be too true ;)23:27
RandalSchwartz too little, doesn't snap the neck23:27
too much, the rope breaks.23:27
pasky RandalSchwartz: heh :))23:27
RandalSchwartz so there's an official table of "length of rope per body weight" that they used23:27
can't remember where I read that, but it seems obvious now.23:28
pasky well, yeah...23:28
RandalSchwartz oddly enough, they accumulated the data from many military hangings, apparently23:28
jengelh pasky: Those who only cite will never get cited. --Anon.23:28
Ilari RandalSchwartz: Depends on nature of the rope how much it takes before it breaks. :-)23:28
RandalSchwartz Yes - it was based on type of rope as well23:28
oh - too much rope and it could also cut clean through a neck. ouch.23:29
as in, behead.23:29
Mikachu i had to think for a while to realize it's because of the falling distance :P bit tired here23:29
mcella_ joined23:29
RandalSchwartz heh23:29
jengelh not the distance is important, the force is!23:30
mugwump pasky: did you get the message about the v6 routing to repo.or.cz2A23:30
?23:30
pasky i think so23:30
Mikachu jengelh: the gravity is fairly constant :)23:30
RandalSchwartz ... http://www.ehow.com/how_2146065_calculate-necessary-rope-length-hanging.html23:30
pasky i need to get rid of v6 in the dns again23:30
RandalSchwartz ... http://www.capitalpunishmentuk.org/hanging1.html23:30
Ilari BTW: Some earlier cars had glove compartment doors that could open in accident and cut through neck of small-sized passager in front seat (while the keys sliced kneecap of the driver). :-/23:30
pasky i'll do it all just when i finish the first content-complete draft of the thesis :)23:30
mugwump ok, it's just a pita for v6-enabled sites with that record there and no routing23:31
but I guess git seems to recover ok23:31
RandalSchwartz .. "The long drop method was designed to break the prisoner’s neck by allowing them to fall a pre-determined distance and then be brought up with a sharp jerk by the rope. At the end of the drop, the body is still accelerating under the force of gravity but the head is constrained by the noose which delivers a massive blow to the back and one side of the neck, which combined with the downward >>23:31
momentum of the body, breaks the neck and ruptures the spinal cord causing instant deep unconsciousness and rapid death."23:31
jengelh Mikachu: the less gravitational pull, the longer you could survive :)23:32
RandalSchwartz you can't get hanged in 0 g!23:32
Mikachu maybe with some magnets23:32
jamessharpe left23:32
RandalSchwartz yeah, after swallowing buckshot. :)23:33
charon left23:34
redondos left23:36
Ilari Hmm... Wonder how much magnetic field it takes to make human levitate... With frogs, about 16T is enough... And in weightless conditions, that sort of magnetic field should approximately simulate normal gravity... Too big magnets required though...23:38
Mikachu i would probably attach some magnets to the subject23:39
pygi Ilari, you're thinking in todays technology23:39
think in the inventions of tomorrow23:39
cmarcelo left23:39
cehteh Ilari: and hope that there is no small particle of iron in your body23:44
Mikachu depending on how small it is and how powerful the magnet is, you'll just end up with a very small hole in your body :)23:44
cehteh 16T is quite a lot23:45
dsaxena joined23:45
Ilari cehteh: Yea. It is a lot... IIRC even the most magnetic-field-resistant superconducting materials max out at 22T...23:46
gittish left23:48
Cerebon joined23:57
GyrosGeier points out that this would probably be lethal if you had a tattoo23:59

Logs Search ←Prev date Next date→ Channels Documentation