IRCloggy #git 2010-04-21

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.

2010-04-21

jmcantrell joined00:02
agnathan left00:02
saccade joined00:06
avuton left00:06
meatmanek left00:06
wriver left00:07
Remixman joined00:10
gsan joined00:11
kenneth_reitz left00:11
pheaver joined00:11
juan_arandaalvar joined00:12
justin-george left00:12
dreiss left00:12
Remixman left00:14
altogether left00:14
Quevin joined00:14
Quevin left00:14
mjf left00:15
webchick left00:15
tildeequals left00:18
frakturfreak left00:20
Remixman joined00:21
meatmanek joined00:22
jsilver joined00:22
AAABeef left00:24
timofonic left00:25
frakturfreak joined00:26
jsilver i just merged a branch with master branch, why doesn't it get pushed after i commit and push?00:26
meatmanek left00:26
Remixman left00:28
wereHamster jsilver: man git-config -> push.defaults00:28
Gitbot jsilver: the git-config manpage can be found at http://git.or.cz/man/git-config00:28
wereHamster push.default00:29
a2ron left00:29
loincloth left00:29
a2ron joined00:31
Fullmoon joined00:31
stringo0 joined00:31
frakturfreak left00:32
magn3ts joined00:33
scarabx joined00:35
enherit_ joined00:38
altogether joined00:40
enherit left00:41
enherit_enherit00:41
webchick joined00:41
altogether left00:42
mrlarner left00:43
jsilver wereHamster, thanks00:44
i was getting confused about how merging works when pushing a merged branch00:45
the commit didnt how up00:45
the merge commit00:45
timvisher joined00:45
jsilver apparently git just told the remote "merge the branches"00:45
or something00:45
webchick left00:46
Rolenun joined00:46
anair_84 left00:46
lightcap left00:47
wereHamster fast-forward merge00:48
and merges happen in the local repo00:48
git doens't (can't) tell the remote repo to perform a merge00:48
jsilver hmm00:50
what's the proper procedure?00:50
i checked out master, merged, that worked, then commited and pushed00:51
the push worked but 0 deltas00:51
dharrigan left00:51
jsilver so i got confused00:51
wereHamster was the branch you merged into master already part of the remote repository?00:51
jsilver yes00:51
we had been pushing it there00:51
to sync00:51
MrPunkin left00:52
wereHamster then it was a fast-forward merge, in which case there are no new objects to push, git only updates the ref00:52
jsilver ahh00:52
thought so00:52
thanks !00:52
ilteris- joined00:53
ilteris_ left00:55
christophsturm left00:55
christophsturm joined00:56
Bass10 left00:56
mithro joined00:59
christophsturm left01:00
Alagar left01:03
pklingem joined01:05
Mooloo left01:06
psynaptic left01:07
jafl joined01:07
Ryback_ left01:07
dharrigan joined01:10
magn3ts left01:10
dharrigan left01:10
tildeequals joined01:10
Vampire0 joined01:11
Vampire0_ left01:13
pklingem left01:14
enherit left01:15
hkweb joined01:16
timofonic joined01:16
royalty joined01:17
snuxoll left01:21
VVSiz_ joined01:24
magn3ts joined01:24
jrmuizel joined01:24
tedoc2000 left01:24
timvisher any emacs users around?01:26
I've got a question about replacing with \,() syntax01:26
#emacs is dead right now01:26
VVSiz left01:27
Gulug left01:28
avar C-h r m REGEX RET ?01:29
Gulug joined01:29
webchick joined01:29
timvisher Specifically about regex replacement in a fontified buffer.01:29
I just figured it out.01:29
M-x facemenu-remove-all01:30
took an hour to find that though…01:30
:(01:30
zaius joined01:31
webchick left01:31
iruediger joined01:31
altogether joined01:32
zaius Hey all. I have a bunch of binaries that I no longer need day to day, but I would like to keep in the repository. Is it possible to keep them in a branch, and not have them taking up space in master?01:32
timvisher and now mysteriously it's not working again.01:33
timvisher pulls some hair out absent mindedly…01:33
AAA_awright_ joined01:33
timvisher I need to be able to remove it from \1 in the replacement string01:34
but I have no idea how to do that.01:34
parasti left01:35
AAA_awright left01:35
warthog9 left01:36
nDuff zaius, if you just want to save the space in the working tree, absolutely -- but every cloned repo will still include those objects, so I don't know if it'll actually save as much space as you're hoping.01:36
altogether left01:37
nDuff zaius, ...if these really are static binary files, as opposed to sources, you might consider incorporating them by reference -- having a makefile which downloads them when appropriate and contains only a checksum to compare the downloaded blob against. That doesn't help you much with the size of your repos, though, since they're already there in your history taking up space.01:37
joevano left01:38
lightcap joined01:40
joevano joined01:40
lightcap left01:40
WALoeIII left01:40
xer0xxer0x|away01:43
dmg joined01:45
timofonic left01:46
zaius yeah.. there's actually no need for the binaries any more, but i want to be able to go back to them if i need01:47
kukks left01:47
zaius clone pulls the whole repo, right? including all branches?01:48
deadguys left01:50
deadguys joined01:50
juan_arandaalvar left01:54
jrmuizel left01:55
stantont joined01:55
Chani joined01:56
gdey joined01:56
Chani so... I spent a while writing code in a new folder in one gitsvn repo. now I've realised I actually need the whole folder moved to a different location.. which happens to be under a *different* gitsvn repo. how much trouble would it be to preserve history?01:58
I'll probably squash it before I dcommit anyways, so I'm not overly attached to that history, but it would be nice to have01:58
nevyn Chani: add it as a remote and cherry pick the bits?01:59
Chani: how many commits are we talking about?01:59
Chani nevyn: I can add a completely different codebase as a remote?01:59
nevyn as long as the commits apply cleanly to both trees you should be able to transport individual commits I think....02:00
webchick joined02:00
Chani nevyn: 11 commits, and iirc only one touches a file outside that folder02:00
nevyn is the path within both projects to the directory the same?02:00
if so you're golden02:00
Chani er.. the same? it's a brand new folder02:01
nevyn do it in a branch for justin02:01
Chani although \where I created it, it's a folder in the gitsvn root. where I need to move it to is acutally a few levels down02:01
nevyn right but if you have projectagitroot/libs/directoryofinterest02:01
so cherrypick the changes first then git mv the directory and commit02:02
if it's new it's even less of an issue02:02
Chani hmm, yeah, prolly easier02:02
although... I should probably double-check that this actually *is* necessary before I do it02:04
dys left02:04
camonz joined02:04
dys joined02:05
treak007 joined02:05
hkweb left02:05
magn3ts left02:07
jafl left02:08
timofonic joined02:08
Sonic joined02:09
Gulug left02:11
sh1mmer left02:12
jmcantrell left02:12
jmcantrell joined02:13
sh1mmer joined02:20
webchick left02:20
dmg left02:20
snuxoll joined02:21
altogether joined02:22
sh1m joined02:23
cytrinox left02:23
sh1mmer left02:24
sh1msh1mmer02:24
cytrinox joined02:25
Remixman joined02:26
gdey left02:28
dmg joined02:28
spearce left02:30
darwin_ left02:31
darwin_ joined02:31
novas0x2a left02:36
mefesto joined02:37
magn3ts joined02:41
tstclair joined02:43
sagsousuke left02:47
warthog9 joined02:50
novas0x2a joined02:51
eek812 left02:52
timj__ joined02:52
Aaaarg left02:53
Aaaarg joined02:56
Meow`` left02:56
timj_ left02:56
flaguy48 left02:59
dys` joined03:00
Meow`` joined03:01
dys left03:02
joeconyers joined03:03
npouillard joined03:04
Guthur left03:06
sh1mmer left03:08
eli In a project that moves from svn to git, I'm now at the anticipated stage of people who are surprised by the staging area, and who look for a way to avoid it.03:14
Is there a quick way to make `git commit' with no paths behave as if it got "."?03:15
Meow`` left03:15
tstclair left03:15
nDuff shudders -- he has coworkers who do that, and they have no end of cases where they check in more changes than they want to by mistake.03:16
eli nDuff: How do they do it?03:16
avar eli: Write a shellscript? Or make the silly buggers learn git?03:16
eli avar: I'm leaning towards a shell script --03:17
nDuff eli, *shrug* -- they might use a shell function, or somesuch; different department, I only get called in to clean up their messes.03:17
eli what I want to avoid is them getting used to adding `-a' which is the wrong thing that leads to such problems.03:17
(And to make things worse, I've seen lots of svn->git pages mention `-a' as the way to go.)03:18
petdance joined03:18
nDuff 'git add .' is the wrong way to go too; unless you're careful in your .gitignore you end up checking vim swapfiles and such cruft.03:18
Meow`` joined03:18
eli nDuff: I'm not talking about that,03:20
Belna_ joined03:20
eli What I think should work nicely is a quick script that checks if any of the arguments looks like a path -- if there is one, run `git commit' as is, if there isn't, add a `.' argument.03:21
(And do so at the beginning, so `git ci -m' doesn't end up being confusing.)03:21
tanoku left03:22
nDuff probably should also check whether there's already anything staged03:22
and only change behavior if there isn't03:22
eli Good point.03:23
Actually, it looks like what I descibed works fine -- adding "." makes all changes that were `git add'ed in this directory as well as changes that were not be committed; and changes elsewhere that were added are not included.03:31
So this looks close enough to the svn thing.03:31
godlygeek eli: make them learn git, definitely. but, also - teach them about git commit -a03:31
Khisanth joined03:31
nDuff eli, well, my point was that it's probably a good idea to let folks who want to do things the Right Way do so, ie. make sure your script doesn't obstruct the preferred workflow.03:32
eli godlygeek: See above -- I think that getting them into the habit of using `-a' is bad -- it will make them commit stuff they didn't intend to.03:32
godlygeek adding an implicit . is worse...03:32
nDuff eli, ...if you're not shadowing 'git commit' but rather providing a separate command, though, that's fine.03:32
godlygeek at least with -a they can only commit changes to files that have already been added.03:32
jrmorrisnc joined03:33
eli nDuff: Yes, the point is of course to provide a migration path -- there's no objection to learning how to use git, but I'm not going to blame anyone for not becoming a fluent git user overnight.03:33
nDuff godlygeek, ...actually, reading the man page, it looks like that's the case with 'git commit' as well, so it's not as bad as an implicit 'git add .'03:33
eli godlygeek: not implicit -- check if there's no paths specified as an argument, and if none are -- include a ".".03:34
nDuff eli, *nod*; that's actually one of my objections to git -- it's not all that user-friendly to those who want to use the concepts they already know, as opposed to Bazaar and such.03:34
godlygeek what advantage does that have over using git commit -a ? i'm still not seeing one...03:34
nDuff godlygeek, git commit -a includes things not under the current directory03:34
cloudhead joined03:34
nDuff godlygeek, ...if their workflow is such that they're accustomed to committing subtrees...03:35
eli nDuff: Yeah -- one of the thing I practically demanded is that they install 1.7.x; I get the impression that things are way better now.03:35
Theaxiom joined03:35
godlygeek ok, but - "git commit -a" will commit all files that are tracked, "git add ." will start tracking new files...03:35
Theaxiom question, let's say I have a folder inside my repo that I want to be it's own repo, how would I accomplish that? I don't want it to be a submodule, because I would want it to essentially be the main repo location. Does that make sense?03:35
eli godlygeek: What nDuff said -- being surprised by committing stuff out of the current directory can lead to more shouting.03:35
nDuff godlygeek, he's not doing an implicit git add ., but rather a git commit .03:35
godlygeek i definitely think the risk of starting to track new files accidentally is a bad idea...03:36
eli godlygeek: It's not tracking new files -- I checked that.03:36
nDuff godlygeek, ...no risk of tracking new files with "git commit ."03:36
eli Here's the script, FWIW:03:36
#!/bin/sh03:36
seen_path=no; for p; do if [ -e "$p" ]; then seen_path=yes; fi; done03:36
if [ $seen_path = yes ]; then git commit "$@"; else git commit . "$@"; fi03:36
godlygeek oh, indeed you're right - i thought "git commit ." would add new files as well, my bad.03:37
eli In any case, this looks to me much better than the often recommended `ci = commit -a',03:38
not only in being more svn-line, but in not making people stick to it and leaving the door open for them to get used to git.03:38
Fusco left03:39
dmg left03:39
eli Theaxiom: perhaps this works: http://progit.org/book/ch6-7.html03:40
Theaxiom eli, thanks but I think I found what I needed @ http://help.github.com/splitting-a-subpath-to-a-new-repo/03:40
eli Theaxiom: Ah, I thought you wanted to go the other way.03:42
(Which is something I was looking into earlier today.)03:42
Theaxiom eli, ahh pulling another repo into your source tree?03:42
eli Yes03:42
Theaxiom eli, that will be good to know later on down the road, thanks :)03:42
eli, I actually think I can make use of that right now for a different folder, heh03:43
lresende joined03:43
Theaxiom eli, thanks03:43
lresende left03:43
Remixman left03:45
jtauber joined03:48
aresnick left03:50
Remixman joined03:50
s|k left03:50
sh1mmer joined03:58
dmg joined03:58
mythos left04:00
juan_arandaalvar joined04:00
jrmorrisnc so my boss wants me to present why git is better than CVS to my team.04:00
iruediger left04:01
juan_arandaalvar left04:01
Remixman left04:01
jrmorrisnc I never used CVS so I'm not sure where to begin04:01
juan_arandaalvar joined04:01
manyoso left04:02
jrmorrisnc anyone got a good link comparing cvs and git?04:02
Rolenun ...04:03
http://www.youtube.com/watch?v=4XpnKHJAok8 =D04:04
coppro git does everything cvs does except it's better. It also does other stuff04:04
jrmorrisnc ok, I've watched the talk, besides merges and efficiency of moving things around, what other aspects could I play up, like distributed workflows, etc that ought to turn heads. Really want to make a good impression04:05
cherrypicking maybe?04:06
ilteris- left04:06
Remixman joined04:07
ilteris- joined04:07
Rolenun http://progit.org/book/04:07
jrmorrisnc ty04:07
Rolenun np :)04:08
nDuff jrmorrisnc, the big thing I'd focus on is data integrity.04:08
jrmorrisnc, I maintained cscvs for a long time, a tool for parsing through CSV history and building patchsets out of it. CVS is *very* much prone to data corruption; if part of a ,v file gets truncated off, you don't notice until you try to check out part of the history from before the truncation happened.04:09
jrmorrisnc data integrity :D04:09
tyvm04:09
jonshea left04:09
jrmorrisnc i use git and I never used anything else but SVN for a little while so I would have just blown past that04:09
jonshea joined04:10
jtauber offline usage has always been a huge one for me04:10
Rolenun I think my favorite part of git is that I can run a server from a usb drive just as easily as from a hard drive.04:10
jtauber and no single point of failure has saved my team a couple of times04:10
Rolenun exactly jtauber :D04:10
nDuff jrmorrisnc, ...also, CVS throws away information on which changes got committed together, as it doesn't have a concept of changesets. It's relatively easy to move your data from any changeset-oriented revision control system to a different one, but coming from something where the only storage layer is individual files, there's guesswork involved in the conversion. When your history is in the balance, you don't want guesswork.04:10
silence joined04:11
kingfishr left04:11
silenceGuest260104:11
kingfishr joined04:11
jtauber it's funny because I see SVN as so much better than CVS and git as so much better than SVN that the thought of comparing CVS and git makes my brain explode :-)04:11
Remixman left04:12
xer0x|awayxer0x04:12
Guest2601ajpiano04:12
Rolenun yeah, everytime I hear the comparison I tend to refer ppl to linus' google talk. ie "Git takes the approach: What would CVS never ever do..." :D04:12
mugwump SVN is better than CVS?04:12
nDuff mugwump, absolutely.04:12
Rolenun yes04:12
mugwump slightly better interoperability perhaps04:12
slightly less fragile04:13
nDuff mugwump, a better data model04:13
mugwump no branches04:13
no tags04:13
nDuff certainly there's branching and tag support, if the tool is used as intended04:13
mugwump they're not first class features04:13
it's not user servicable like CVS04:13
Rolenun but another of git's great abilities is to be able to merge in under 2 seconds. try doing that with cvs or svn :D04:13
nDuff mugwump, and diffs aren't first-class objects in git, but diff-related commands work just fine.04:14
jtauber svn just treats branching and tagging as lightweight copying, it's quite an elegant solution compared with cvs04:14
nDuff mugwump, ...I care what actually works in practice, and how well, with users following the preferred workflow more than I care about the underlying design.04:14
mugwump well, it treats lightweight copying as lightweight copying, and nothing else exists04:14
Yuffster left04:14
coppro not true04:15
they added mergeinfo04:15
mugwump by the time mergeinfo was core svn was already legacy04:15
mythos joined04:15
Remixman joined04:17
Rolenun hehe, I think svn was legacy when git 1.0 was released =D04:18
mugwump It certainly was by June 200804:19
coppro git 1.0 was legacy by the time it was released04:19
mugwump (1.5.0 release date)04:19
tgunr left04:20
ilteris- left04:20
jfkw left04:20
chaiz joined04:21
ilteris_ joined04:22
eli nDuff: I'll +9 that -- we moved around 2004 from cvs to svn, and the horror that cvs was made me decide that it's better to dump that history rather than try to port it. A main factor in that decision is exactly that kind of corruption that was impossible to recover from.04:22
mugwump I've seen several svn repositories with unrecoverable revisions too04:23
nDuff mugwump, yes, but is that before or after they dumped bdb?04:24
mefesto left04:24
mugwump pass, it was just some real svn repos04:24
nDuff mugwump, ...and at least svn has a fsck command built-in, so you can make that part of your nightly pre-backup cron job.04:24
jmcantrell left04:25
nDuff mugwump, ...so you're still vastly better off than the cvs case where you only discover you lost history years later.04:25
eli mugwump: We used fsfs almost exclusively, and there was not even one corruption.04:26
mugwump but that doesn't really happen04:26
jony joined04:27
nDuff mugwump, which value of "that"?04:27
xer0xxer0x|away04:27
eli OTOH, the cvs corruption that nDuff talks about most certainly happened. In multiple places.04:27
mugwump I mean, we had a CVS repository here which was used for much longer than svn has been around and no corruption when we converted to git04:27
but you know, anecodotes and all that04:27
nDuff mugwump, as I said, I used to be cscvs maintainer. At least half my "customers" had corruption.04:28
mugwump, ...and given that role, my sample size was much larger than 1.,04:28
juan_arandaalvar left04:28
nDuff s/,$//04:28
segher left04:28
Remixman left04:28
Rolenun yeah nDuff, I saw similiar corruption among multiple clients and farms04:29
Semikolon left04:29
mugwump well, in hindsight it seems like snake oil which made everyone change systems for only a marginal gain04:29
nDuff mugwump, ...I strongly disagree, but don't have time to argue it further.04:30
jakubzalas joined04:30
Rolenun +104:30
munichlinux joined04:30
mugwump all I'm saying is that the "branching is just copying" idea, which they stole from Perforce (badly), was a backwards step, and depending on what you rate as important, makes it worse for some people04:33
Remixman joined04:33
Belna_ left04:33
jony left04:33
offby1 mugwump: I thought it was elegant when I first encountered it04:34
mugwump sure, I swallowed it initially too04:34
nDuff mugwump, ...if you buy git's proposition that it's perfectly reasonable to work backwards to deltas from snapshots, I see no reason at all why svn's concept isn't workable.04:34
jony joined04:34
nDuff mugwump, ...yes, you need history-tracking metadata. Even if you started using git before they added that upstream, there were 3rd-party tools for doing that, and it came with a quite elegant way for storing both revision and subtree metadata.04:35
mugwump you typed "git" where you meant "svn"04:35
your fingers have learned04:35
nDuff err, right04:35
:)04:35
(it is late, and I am tired)04:36
mugwump 10 years before svn existed, the tool they stole that from had such tracking04:36
nDuff ...actually, I should probably go home while I can still pretend to almost be able to drive safely.04:36
maleknet joined04:36
mugwump but somebody on the internet is WRONG!04:36
;-)04:36
nDuff mugwump, yes, I know. I'm also PO'd that nobody but darcs and monotone do merging as well as Tom Lord's GNU Arch did, even years later. Sometimes state-of-the-art moves backwards in some respect or another. Too bad, it happens.04:37
seanmccann left04:37
mugwump Hmm. I'm not sure what arch does that git rebase doesn't, but ok04:37
seanmccann joined04:37
nDuff mugwump, corner cases involving cherry picking and remerging04:38
you could trivially mark a changeset as not to be merged into a given branch, and that designation stuck04:38
scarabx left04:38
meatmanek joined04:39
cloudhead left04:39
meatmanek left04:39
magn3ts left04:40
Remixman left04:44
KDII joined04:44
KDII left04:44
jjuran joined04:45
madewokherd left04:45
codetroll joined04:49
Remixman joined04:50
gnufied left04:55
Textmode left04:55
fool_ joined04:56
fool_ left04:56
fool_ joined04:56
magn3ts joined04:56
roop joined04:58
fool__ left04:59
Remixman left05:01
jceb joined05:01
Twisted_Mentat left05:03
keyvan anyone here to help me get gitbot working?05:03
looks pretty straightforward.. but i must be screwing something up05:04
eh ill just read the source.05:04
kingfishr left05:04
kingfishr joined05:05
jakubzalas left05:05
dreiss joined05:07
Remixman joined05:08
bdimcheff joined05:09
ScottO_ left05:11
FauxFaux left05:12
royalty left05:13
FauxFaux joined05:14
roop left05:14
roop joined05:15
sde_antrix1 joined05:16
eletuchy left05:16
wolog left05:16
Meow`` left05:16
friskd left05:16
gnufied joined05:17
Remixman left05:17
dominikh left05:19
codeshepherd joined05:22
bdimcheff left05:23
codeshepherd left05:24
Remixman joined05:24
AAA_awright_ left05:26
AAA_awright joined05:26
seanmccann_ joined05:27
magn3ts left05:28
jesterKing joined05:29
seanmccann left05:30
Remixman left05:31
thiago_home joined05:32
psankar joined05:39
ilogger2 joined05:44
Arelius joined05:45
tschundeee joined05:45
SunilThaha joined05:49
khaase joined05:50
Guest24555 joined05:57
Weasel[DK] joined05:59
lucasvo joined06:02
munichlinux joined06:02
tetha joined06:06
priidu joined06:07
hyperair joined06:08
jony joined06:12
Belna joined06:15
drizzd joined06:16
friskd joined06:16
roop_ joined06:16
cbreak_work joined06:17
ph^ joined06:19
Arelius left06:22
Arelius joined06:22
knittl http://paste2.org/p/785036 opinions/testing? :)06:23
steffkes joined06:24
rseifert joined06:25
tetha left06:26
WALoeIII joined06:26
knittl and i now see an hilight from yesterday, gotta fix that too06:26
ph^ left06:26
wereHamster knittl: the if (s->branch) is useless, because of the assert right before that06:27
or the assert is wrong06:28
kenneth_reitz joined06:29
knittl wereHamster: yeah, i can probably remove the if06:29
wolog joined06:29
magn3ts joined06:30
y10 joined06:31
y10 left06:31
eletuchy joined06:33
munichlinux left06:35
ntoll joined06:35
carl- joined06:38
Guest24555 left06:39
knittl but it's not hurting now06:40
and all my tests were successful06:40
i should probably look into the existing unit tests06:40
drizzd left06:40
Alagar joined06:41
Alagar good morning all.06:41
any one can help me. what is the command get the latest code from server and get the specific version from server06:42
drizzd joined06:42
friskd left06:42
knittl git fetch <remote> gets all code from the server06:44
git checkout/pull/merge to have it in your working tree06:44
Remixman joined06:47
magn3ts left06:47
webchick joined06:48
Alagar knittl: thanks is any graphical mode git client available for working from windows machine?06:49
priidu left06:49
nor3 joined06:49
knittl Alagar: tortoisegit/git gui/gitk06:49
chittoor joined06:50
nor3 anyone with git-osx-installer experience? i expected 'git' to be in my path after running it, but it isn't06:50
vu3rdd joined06:51
tschundeee left06:51
dmg joined06:52
tango_ joined06:52
skoop joined06:56
staaleu How can I run mergetool on unresolved conflicts in a single directory instead off all unresolved files at once?06:58
giallu joined06:59
LeLutin joined06:59
galderz joined07:00
Remixman left07:02
d0ugal joined07:03
nor3 left07:05
j416 joined07:08
j416 left07:08
akamaus joined07:08
timofonic joined07:08
j416 joined07:08
Remixman joined07:08
Alagar knittl: thanks. could you please help me. how to create a new git repository in server machine.07:09
akamaus hello, how can I clone the git repository to the remote host?07:09
trivol joined07:09
killerchicken_ joined07:10
hyperair left07:10
cbreak_work akamaus: run it on the remote host07:10
priidu joined07:10
cbreak_work or make a local clone and scp it over07:11
akamaus cbreak, so there is no way to 'push' the repo?07:11
raichoo joined07:11
cbreak_work only if there's a repo07:12
git's an SCM, not a file transfer program07:12
magn3ts joined07:13
akamaus cbreak_work, got it. I thought about something like darcs put.07:14
scp is too slow for my case, will try git init and git push07:14
cbreak_work too slow? :)07:16
I am not sure if you'll be happy with git push then07:16
crab if you're pushing over ssh, then git push will be just as slow.07:16
Remixman left07:16
WALoeIII left07:16
cbreak_work pushing over SSH is the only solution for the paranoid07:17
dmg left07:17
loxs joined07:18
staaleu How can I run mergetool on unresolved conflicts in a single directory instead off all unresolved files at once?07:18
akamaus cbreak_work, scp transfers a big number of small files very slowly07:18
LRN joined07:19
cbreak_work you can zip it before transfering07:19
if you have means to unzip it on the destination at least :)07:19
but pusing to a newly init --bare'd repo is also an option07:20
adaro joined07:20
adaro left07:20
akamaus yeah, that works )07:21
loxs I'm reading about merge, and I can't find if there is something like "merge --pretend" so that I can see what would really happen if I issued merge. Generally could you recommend me some article on "howto code review using git"?07:22
Remixman joined07:23
Bombe loxs, just merge. Either the merge works (then you can “undo” it by “reset HEAD^”) or it doesn’t (in which case no commit is created).07:23
j416 loxs: if you are very paranoid about it, you can create a new branch and merge into that, then just scrap that branch if you don't want it07:24
Bombe loxs, the --no-commit option will perform the merge but will not create a commit. It’s closest to pretending a merge.07:24
j416 but, merge then reset is faster :)07:24
loxs hmm if I use --no-commit, where do the changes go?07:25
cilly joined07:25
loxs to the working tree?07:25
j416 index07:25
and working tree07:25
loxs so I can merge and then use diff to see what was changed?07:25
that's nice07:25
thanks07:25
j416 perhaps you need git diff --cached07:26
I have never used --no-commit07:26
but you'll find out.07:26
loxs yeah, thanks07:26
j416 loxs: but as Bombe said, it's just as easy without --no-commit07:27
khaase_ joined07:27
j416 git merge otherbranch;07:27
if that succeeds07:27
you can do: 'git reset --hard HEAD^' to get back to where you were before the merge07:28
(given that your work dir was clean of course)07:28
nevyn^ joined07:28
loxs I'll check both ways. But I guess I'd prefer --no-commit07:28
if I merge with --no-commit, will the log still know who wrote that piece of code that I'm merging?07:29
j416 you won't see anything in your log, because you haven't committed anything07:29
loxs I mean, after I commit07:29
j416 if you commit, you will see that history,yes.07:29
it should record its parents07:30
khaase left07:30
loxs I mean, git merge --no-commit >> code review (and some changes as he is still quite newbie programmer) >> commit07:30
ghe joined07:30
dmg joined07:31
khelll joined07:31
loxs ok, I'll test it07:31
cbreak_work do NOT make changes in a merge commit07:31
dj_tjerk joined07:31
cbreak_work that are not part of the merge07:31
if you fix errors, do so in a normal commit07:32
loxs cbreak_work, why so?07:33
ereslibre joined07:34
ereslibre left07:34
ereslibre joined07:34
cbreak_work because it's a merge commit07:35
geshan joined07:35
cbreak_work no one reads what happens in them07:35
one of an SCM's main purposes imho is to document development07:35
so it's good to make the development clear07:36
amcsi joined07:36
Remixman left07:36
cbreak_work well, it's your repo :)07:39
there's no technical problem when you change unrelated things in a merge commit07:39
roop_roop07:39
drizzd left07:40
frakturfreak joined07:40
drizzd joined07:41
hyperair joined07:41
warthog9 joined07:42
mastro joined07:43
gebi joined07:43
Remixman joined07:43
ixti joined07:43
NET||abuse joined07:44
bauruine joined07:46
tbf joined07:48
loxs cbreak_work, I see what you mean. thanks07:48
d0ugal left07:49
ereslibre left07:49
Remixman left07:49
d0ugal joined07:50
ph^ joined07:50
sgronblo How can I reset a file to its initial merge-conflicted state if I messed up with my manual merging?07:51
wereHamster checkout -m <file>07:52
j416 'git checkout -m -- <file>' would be safer, no?07:53
airborn joined07:53
j416 (question, not a suggestion)07:53
sgronblo thanks07:53
lucsky joined07:54
pantsman joined07:55
Remixman joined07:56
wolog left07:56
kar8nga joined07:57
zoniq joined07:58
Remixman left08:01
Rhonda hugs git add -p and <e>dit tightly. That's soooo convenient and great. :)08:02
crab git add -p and <e>dit gasp and choke as the air is squeezed from their lungs.08:03
shruggar joined08:05
simplechat joined08:06
batsf joined08:06
dajero joined08:07
batsf left08:07
bdowning joined08:07
Remixman joined08:08
wolog joined08:09
Bennid joined08:09
kenyon joined08:09
ryanakca joined08:10
Paraselene__ joined08:11
roop_ joined08:11
roop left08:12
Arelius left08:13
lucasvo left08:13
Arelius joined08:13
tatsuya joined08:14
khaase_khaase08:18
CompanionCube joined08:18
knittl Alagar: you don't need a server with git08:19
carl- left08:19
khaase left08:20
khaase joined08:20
gaveen joined08:20
Remixman left08:21
pantsman left08:27
ZGirl joined08:27
ZGirl What does git got that SVN don't?08:27
divVerent speed - space efficient checkout - branching and merging that actually works08:28
wereHamster proper merging support08:28
Remixman joined08:28
khaase ZGirl: https://git.wiki.kernel.org/index.php/GitSvnComparison08:29
crab righteousness.08:29
divVerent you know, svn the "OMG I store every file twice, and don't even compress the second copy" SCM :P08:29
crab ;)08:29
wereHamster ZGirl: http://whygitisbetterthanx.com/#svn08:29
ZGirl I like git because it sounds western08:29
shruggar good merging, sane history rewriting, distributed use08:29
divVerent history rewriting is never sane ;)08:29
unless locally08:30
ZGirl http://www.howtopersuadeyouremployertoswitchfromsvntogitovernight.com/08:30
shruggar divVerent: you've just committed the nuclear launch codes to svn, what do you do? :)08:30
dj_tjerk left08:30
cbreak_work ZGirl: git has branches and tags08:30
ZGirl Like a diseased tree08:31
divVerent shruggar: IIRC there are tools for undoing the last committed rev08:31
cbreak_work no08:31
not a tree08:31
a DAG08:31
git also supports merging, yo you don't get only trees08:31
divVerent shruggar: well, REALLY bad example08:31
wereHamster svn is like a tree: you can branch but not merge ;)08:31
divVerent in git you cannot eradicate it once someone has pulled08:31
shruggar SVN has branches and tags. Git has an interface to branches and tags which not only will /not/ make your fingers, eyes, and brain bleed, but also (bonus!) is simple enough that you'll actually use them08:32
divVerent even if you filter-branch to remove it - too late, next time he pushes the code is back oin08:32
cbreak_work divVerent: in git you can rewrite history as much as you want, you just have to do it everywhere where it is08:32
and unlike svn, git has lots of potential redundancy08:32
divVerent cbreak_work: yes, and this is why it is not possible08:32
there is no secure way to FORCE every user to perform that command :P08:32
in THIS SPECIFIC case, svn is actually much better08:33
shruggar in svn, once someone has updated, there is no way to get rid of it. That's not an svn vs git thing, that's a laws of reality thing08:33
divVerent dump the repo, edit the dump to kill that file, undump it08:33
shruggar: sure, but same thing with git :P08:33
cbreak_work it's called "I know where you live and where your kids go to school... so ... run this command" method.08:33
divVerent git's automatic superhappy merging is normally a good thing08:33
in this specific case it's a bad thing :P08:33
wereHamster ZGirl: see what you started... ;)08:34
divVerent I would BTW like to implement a system for automatically downloading such a filter-branch command from a server08:34
in a git frontend script08:34
but until now I found no way for that that isn't a gaping security hole08:34
cbreak_work make it involve jails08:34
divVerent thing is, in a decentral system you often do not KNOW who has your repo, or may commit08:35
shruggar divVerent, no. With svn it's "Someone could already have the change, but how do I get rid of it so that future users won't get it? Oh right, take the server offline and run a 36-hour import/export cycle" with git it's "Someone could already have the change, but how do I get rid of it so that future users don't get it? Oh right, run this one command. Gee, that was easy."08:35
divVerent in svn, it's quite controlled who can commit08:35
in git, often changes are pulled from elsewhere, and also may merge in the forbidden history08:35
ZGirl I just wish you could ignore directories and files easier in SVN08:36
divVerent shruggar: except this does not work for git :P08:36
carl- joined08:36
divVerent well, if you use gitolite, you can also add a rule to forbid pushing that file back in08:36
ZGirl svn propedit svn:ignore stupid_directory08:36
divVerent that at least is SOMETHING08:36
cbreak_work git has pattern based ignores08:37
divVerent just a git update-ref won't fix anything, as that's the first change the next "git push" will reupload08:37
cbreak_work (based on the file name and parts of it's path)08:37
also, git doesn't track directories08:37
not sure if subversion does08:37
shruggar wouldn't making a single commit on top of the "revised history" make the whole problem go away? No more successful push08:38
bauruine left08:39
cbreak_work user can still rebase/merge08:40
shruggar svn users can still commit non-sanely, if the revision numberis the same, afaik08:41
flazz joined08:43
shruggar either way, I think "not having the server down for a day" is a good thing08:43
divVerent true, at least once I have a good automated syswtem for forcing the user to do the same filter command08:44
Madsy joined08:45
Pupeno joined08:45
ZGirl I am a true versioning freak08:46
Madsy What is the correct method of moving source from one source file into another, and then delete the file? Can git track such merges?08:46
shruggar Madsy, the correct method is to just do it, and git notices automatically08:47
Madsy Say if I have two files a and b. I move all the function implementations from a into b, and delete a.08:47
shruggar: Okay, thanks.08:47
shruggar at least, that's the theory08:47
in practice, it could use some work for the more-obscure cases, since the less-obscure ones are generally considered "good enough"08:48
but in git, the best option is usually "try it, see what happens", and "don't change your workflow to suit git. If git does the wrong thing, complain on the mailing list"08:49
Madsy That's nice to hear.08:49
I'm damaged from heavy SVN use, so..08:50
Trying to unlearn all the svn'isms.08:50
shruggar That said, I don't actually know what will happen if you try to merge changes to file a in, once you've made the change. I've never done that, but I /think/ that's the kind of thing that git was designed specifically to be able to handle. I'm really not sure, though.08:51
loincloth joined08:52
sylr joined08:52
JEEBcz joined08:53
saLOUt joined08:54
saLOUt how do i checkout exactly one file from a special commit in my current master branch?08:55
shruggar saLOUt, what do you mean by "checkout"?08:55
saLOUt create a copy from history to the working dir08:55
j416 saLOUt: git checkout <commit> -- <file>08:56
iirc08:56
mtkd joined08:56
aziz joined08:56
saLOUt for what do i need the --08:56
j416 everything after -- is treated as a path08:56
it's for not confusing it for a branch name etc.08:56
shruggar the -- separates revisions from files, in case the file you want to check out is called "master"08:56
bx2 joined08:57
knittl shruggar: also if you want to check out a file called "-f"08:57
shruggar of course08:57
j416 saLOUt: if you're sure there is no ref with the same name as your file, you can omit --, but it's good practice to use it :)08:58
s/ref/ref or other command etc./08:58
/flag08:58
Khisanth joined08:58
Yuuhi joined08:58
psynaptic joined09:04
Brodde joined09:04
fai|safe joined09:05
bluenovember joined09:06
project2501a joined09:07
snitko joined09:13
kenneth_reitz left09:15
snitko left09:18
crab what umask should users of an init --shared repository have? or doesn't it matter?09:20
fai|safe left09:21
doener crab: testing with "umask 0077; git init --bare --shared" gives e.g. "drwxrws--- 4 doener doener 4096 21. Apr 11:21 refs". So I'd say: doesn't matter09:22
fai|safe joined09:22
ZGirl left09:22
crab i meant when they were pushing, not for the init. but it seems it doesn't matter, indeed.09:24
fai|safe left09:26
jony left09:28
loxs left09:29
ramlev joined09:31
ramlev left09:31
Remixman left09:32
petrux joined09:33
jony joined09:34
jovianjake joined09:35
hachi hi all09:38
I'm trying to debug an ssh issue that only happens when I'm using git09:38
if I say git fetch, my ssh client starts asking me for a password, doesn't seem to let me access the remote machine09:38
but if I copy and paste the hostname from the git config file to the same shell invoking it as an argument for 'ssh', I'm able to log into the box, either with a proper password09:39
or if I have my key loaded into an agent, no password09:39
if I invoke git fetch with -v it doesn't show any output before invoking ssh09:39
jovianjake left09:40
doener hachi: set GIT_TRACE=1 to see the ssh command it executes09:40
jovianjake joined09:40
hachi if I invoke the same ssh command it is running, no issue09:41
tg joined09:41
fai|safe joined09:42
hachi trace: run_command: 'ssh' 'git.dev.company.com' 'git-upload-pack '\''git/rpmtools.git'\'''09:43
if I run that command manually, less the excessive quoting, it works fine09:43
tg left09:44
hachi strace shows the same thing... running it within the context of git fetch either prompts me for a password, or the far end refuses my key09:44
running it standalone works fine09:44
anyone know how I can debug this further?09:45
mum-n-dad joined09:45
tg joined09:46
j416 left09:48
mum-n-dad Hello09:48
I just cloned this repository a few days ago. Haven't touched it at all. Tried pulling the latest version just now, and got "error: Your local changes to 'app/controllers/blog_controller.rb' would be overwritten by merge. Aborting. Please, commit your changes or stash them before you can merge." - I get this message way too often. Is there any way to force a pull?09:48
j416 joined09:48
divVerent did you modify blog_controller.rb?09:49
or did, maybe, some build script?09:49
mum-n-dad No09:49
I haven't touched it at all09:49
divVerent if YOU modified that file, you should commit it09:49
mum-n-dad I haven't man!09:49
divVerent if you did not, and don't care - use git reset --hard09:49
and then complain to the owner of the repo as apparently they put some generated or modified-by-build file in the repository :P09:50
there actually is one other case when this might happen09:50
did you set autocrlf?09:51
mum-n-dad Nope09:51
Not that either09:51
divVerent hm... very odd09:51
mum-n-dad I'm using this script to pull - http://pastie.org/92750109:51
so I just add git reset --hard to that one yeah?09:51
I have a ton of repos I mirror on my harddrive you see09:51
divVerent that script is certainly fine09:52
but yes, reset --hard should fix it09:52
mum-n-dad Any shell programmers know how I could only apply git reset --hard to that script if there's an error?09:52
thanks a lot divVerent - I really appreciate it09:52
divVerent Morasique: you REALLY only want to do that if you never have any local changes in these repos09:53
i.e. if you are a "end user"09:53
fai|safe left09:53
divVerent but then:09:53
before the git pull, put "git reset --hard" and also "git clean -f"09:53
sorry, mum-n-dad :P09:53
mum-n-dad first reset then clean?09:53
divVerent order does not matter09:54
j416 maybe also: git clean -dfx09:54
divVerent reset handles modified files, clean gets rid of additional files09:54
webchick left09:54
mum-n-dad awesome!09:54
divVerent yes, possibly09:54
mum-n-dad j416: what does that do?09:54
divVerent -d gets rid of empty dirs, -x gets rid of .gitignore'd files09:54
j416 mum-n-dad: man git-clean explains it pretty well! :)09:55
Gitbot mum-n-dad: the git-clean manpage can be found at http://git.or.cz/man/git-clean09:55
mum-n-dad super neat09:55
divVerent but both should usually not stand in the way of pull09:55
mum-n-dad :D09:55
divVerent but maybe of a build run done later09:55
curtana joined09:55
curtana what is the meaning of a remote's HEAD? I understand that a branch has a HEAD which is the commit that the branch points to ... but what is a repository's HEAD ?09:56
divVerent usually a symbolic ref pointing to master09:56
j416 curtana: 'HEAD' is not 'head'09:56
divVerent IIRC it also is the branch the user checks out by default on a git clone09:56
hachi divVerent: correct09:56
curtana aah09:57
divVerent so if you happen to have the default branch with another name, you can edit that ref09:57
j416 curtana: every branch has a head, but HEAD is the pointer to the currently checked-out commit09:57
hachi the HEAD on a remote becomes the HEAD name, which is a tracking branch pointing to the remote of the same name... during a clone09:57
curtana j416, oh that's odd. gitg shows that my remote repositories have a branch, with a name such as: origin/HEAD09:57
divVerent but normally, HEAD points to thwe checked out commit09:57
on a remote (i.e. bare repo), however, there is no such thing, and then it's just the default branch for clone09:57
bx2 left09:57
divVerent curtana: sure. It's the "default branch" and usually identical to master :P09:58
curtana ok09:58
so changing origin/HEAD would change the default branch that would be checked out following a clone of the repository?09:58
divVerent yes09:58
curtana thanks09:58
divVerent it's one of the things you should never do unless you have a GOOD reason :P09:58
curtana :)09:59
divVerent a good reason may be switching HEAD to maint instead of master, so end users using git get something known stable :P09:59
hachi AUGH10:00
mum-n-dad thanks again divVerent10:00
and j41610:00
you're cool people10:00
doener curtana: not origin/HEAD, but HEAD in the repo origin refers to10:00
hachi so, git-upload-pack apparently throws an error code if asked to upload-pack a repo that is empty10:01
divVerent doener: git branch -r typically shows it as origin/HEAD -> origin/master :10:01
P10:01
doener divVerent: that's a local symref, and won't change if origin's HEAD changes10:01
hachi and git-fetch doesn't discern between auth errors or upload-pack returning 'nothing'10:01
divVerent sure10:01
it is created on clone, and matches the origin's HEAD then10:01
doener divVerent: it's just a convenience thing, so you can use "origin" as a shortcut for the "primary" remote tracking branch of that remote10:02
divVerent sure10:02
just like it also is a convenience thing so you already get a working tree after clone :P10:02
doener divVerent: point being: changing origin/HEAD won't affect origin's HEAD, and thus not affect new clones at all10:02
divVerent sure10:03
cbreak_work why would you not get a working tree?10:03
people actually commit non-working trees? :/10:03
divVerent you would get no working tree if the remote had no HEAD10:04
you'd then be forced to explicitly checkout a branch first10:04
tvw joined10:04
mum-n-dad Curious about something10:04
At http://pastie.org/927513 - how do I set it to re-run the "git pull" command if I get "fatal: The remote end hung up unexpectedly"?10:04
cbreak_work hmm. sounds like a minor thing.10:04
mum-n-dad * rerun10:04
divVerent mum-n-dad: not sure if that can be caught easily10:04
a simple way would be:10:04
git pull || git pull || git pull10:05
mum-n-dad heheh10:05
divVerent but that retries on any error10:05
doener divVerent: hm, IIRC HEAD is used to identify some directory as a git repo. So not having HEAD should mean that you just get an error instead of a clone10:05
divVerent doener: oh :P10:05
mum-n-dad Neat actually10:05
divVerent well... the case I actually had, was HEAD pointing into void10:05
like in freshly init'd repos10:05
j416 mum-n-dad: if you're doing this every 2 seconds anyway, I wouldn't worry if git pull fails once :P10:05
divVerent first commit then actually creates what HEAD points to :P10:06
doener yeah, that's a possible case :-)10:06
j416 oh, sorry, misread your script. well well. :)10:06
mum-n-dad j416 :)10:06
j416 mum-n-dad: why are you sleeping there though?10:07
doesn't it work otherwise?10:07
mum-n-dad Actually I was trying to avoid the fatal hangups10:08
akamaus left10:08
j416 ah..10:08
mum-n-dad <ft> well, you need to cd back...10:08
<ft> or do stuff in a subshell, which is probably better.10:08
<ft> also: while ! somecommand; do :; done10:08
amcsi_ joined10:08
mum-n-dad did that make any sense? its from #zsh10:09
<ft> oh, you're working with absoluute path-names... so that's probably not needed.10:09
j416 mum-n-dad: yeah, that'd work I guess10:09
cbreak_work you could outsource the script to india10:09
j416 mum-n-dad: while [git pull returns fatal, and tries less than max limit] do [increment tries]; done10:10
s/tries/'tries'/10:10
maybe.10:10
mum-n-dad while ! git pull; do :; done10:10
j416 with a sleep in that perhaps10:10
mum-n-dad err10:10
<ft> while ! git pull; do :; done10:10
masterkorp joined10:11
mum-n-dad <ft> that'll try forever until is works.10:11
j416 I don't know zsh10:11
amcsi left10:11
codeshepherd joined10:12
mcepl joined10:14
bx2 joined10:14
opalka joined10:14
galderz left10:14
mcepl can anybody help me with this? http://www.fpaste.org/AIwE/ ... there should be a full SVN repostitory there, but git svn seems to be unable to get it.10:15
opalka left10:15
opalka joined10:15
bentob0x joined10:16
christophsturm joined10:17
ciaranm joined10:18
gaveen left10:18
j416 left10:19
crab doener/sitaram: i finished the first draft. comments welcome: http://toroid.org/ams/git-central-repo-howto10:19
galderz joined10:20
codeshepherd left10:20
codeshepherd joined10:20
codeshepherd left10:21
opalka Is there some option how to enable 'svn git fetch' in verbose mode? It fails for me locally and I would like to know the reason of failure.10:21
s/svn git fetch/git svn fetch/10:21
codeshepherd joined10:22
mtkd left10:22
mtkd joined10:23
codeshepherd left10:24
codeshepherd joined10:25
NET||abuse left10:26
codeshepherd left10:27
locklace joined10:28
gsan1 joined10:28
codeshepherd joined10:28
gsan1 left10:28
codeshepherd left10:28
codeshepherd joined10:29
urkud joined10:31
tg left10:31
tg joined10:31
gaveen joined10:31
airborn left10:32
bushwakko joined10:32
codeshepherd left10:32
parasti joined10:33
codeshepherd joined10:33
bushwakko hey, I created a new branch from my existing branch to test some changes. but when i checkout the original branch the changes follow10:33
pk4r joined10:34
bushwakko I did checkout -b testbranch then edited the files, did my test and did a checkout origbranch10:34
all the modified files follwed10:34
codeshepherd left10:34
cbreak_work of course10:34
the working directory is the same all the time10:34
so until you commit your changes, they aren't part of the branch10:34
bushwakko ok10:35
codeshepherd joined10:35
gebi left10:35
Garen joined10:35
bushwakko so I should have commited, then created branch, done changes and ocmmited, change branch again and then delete newbranch?10:35
cbreak_work depends10:36
you commit when the branch you want to commit to is checked out10:36
codeshepherd left10:36
crab bushwakko: you can use "git stash" to store uncommitted local changes temporarily, try something out (in a new branch or not), then switch back to the original branch and git stash pop to resume with the changes.10:37
cbreak_work if you just want to undo some local changes, you can reset them away without making a temp branch10:37
codeshepherd joined10:37
cbreak_work git reset --hard HEAD kills all uncommited changes10:37
crab and yes, use reset to throw away local changes rather than commit and delete the branch.10:37
cbreak_work kill might not be the right word.10:38
shruggar can one specify multiple refspecs in git config remote.origin.push ? I'd like to push refs/heads/*:refs/work/* AND refs/remotes/git-svn:refs/git-svn10:38
cbreak_work annihilate. exterminate.10:38
codeshepherd left10:38
codeshepherd joined10:39
crab obliterate.10:39
cbreak_work fitting, yes10:40
mum-n-dad Anybody good with zsh here? On my git_pull_all.sh at http://pastie.org/927513 - how do I incorporate "retries" into the "while ! git pull; do:; done" (which now retries infinitely)?10:40
* do :;10:41
cbreak_work with a function?10:41
cbreak_work doesn't know this zsh thingie.10:41
codeshepherd left10:42
doener shruggar: just add a second push line10:43
shruggar doener: I thought config keys need to be unique10:43
doener shruggar: or use "git config --add remote.origin.push blabla", the --add takes care of adding a second entry instead of overwriting the old one10:43
shruggar add10:43
ah10:43
doener shruggar: that would make --add pretty useless ;-)10:44
shruggar I didn't know about --add :)10:44
geshan left10:44
codeshepherd joined10:46
Aides joined10:47
codeshepherd left10:48
mcepl can anybody help me with this? http://www.fpaste.org/AIwE/ ... there should be a full SVN repostitory there, but git svn seems to be unable to get it.10:48
codeshepherd joined10:48
urkud left10:48
roop_roop10:50
sitaram crab: looks nice; do you want to add a link to nathanj's GUI tutorial? just in case?10:50
codeshepherd left10:50
codeshepherd joined10:52
jmut joined10:52
g0bl1n joined10:53
doener mcepl: drop the /trunk from the url10:53
mcepl: or don't use -s... but there's no standard layout _within_ the trunk/ directory10:53
scarabx joined10:54
codeshepherd left10:54
shruggar is there any effort to get git-svn to use git-notes instead of its horrible revision-map of doom?10:54
codeshepherd joined10:54
codeshepherd left10:55
jast is there actually any standard on how multiple key-value pairs are supposed to be stored in a note?10:55
mcepl doener: I don't think it's the problem ... git svn always freezes on r4000 (there should be like 12000 or so revisions) and that's it.10:56
codeshepherd joined10:56
Guthur joined10:56
mcepl hold on10:56
shruggar I seriously doubt it. I've just been using a different ref whenever I want a different namespace, and within each namespace I know the format I expect10:56
mcepl yeah, it actually looks like working10:57
let's see10:57
jast oh, right10:57
codeshepherd left10:58
zomg I felt like headdesking hard today when a bunch of git newbies at work were refusing to use command line git, and instead tried doing everything via git-gui10:58
:D10:58
codeshepherd joined10:59
Remixman joined10:59
gsan zomg: consider yourself lucky to use git at work... i have to use svn11:00
codeshepherd left11:00
codeshepherd joined11:01
doener I felt like harddesking today when looking through job offers and seeing "Good Photoshop Skills" as a requirement for a job as a software engineer.11:01
s/hard/head/11:02
Ilari Ability to make interface mockups using Photoshop?11:03
doener hm, now maybe I should use photoshop to adjust a screenshot of my irssi window and pretend I never made that typo11:03
parasti left11:03
zomg gsan: well previous project used svn but I used git-svn :)11:03
doener: heh11:04
codeshepherd left11:04
gsan zomg: trying to myself but running into problems...missing the SVN perl module11:04
C_sun so.. install it?11:05
zomg I was on windows and msysgit had everything so it worked out of the box11:05
doener Ilari: maybe... though I'm not sure that photoshop is the right tool for that job... But I'm not a GUI designer, so I have no clue and do my sketches using pen and paper ;-)11:05
C_sun Ilari: ability to draw code, not write it :p11:06
Ilari And making programmers design the UI is asking for trouble anyway.11:06
fai|safe joined11:06
shruggar ask a programmer to design a UI, and you'll get their favorite programming language :)11:07
posciak can I see the actual message bodies during --dry-run with git-send-email?11:07
gsan C_sun: working on it11:07
posciak I also tried just sending the messages to myself only, even managed to supress most of ccs with --no-signed-off-by-cc but patch author (From:) still gets added to cc. Even --suppress-fro didn't turn that off... is this a bug btw?11:09
s/--supress-fro/--suppress-from11:09
gaveen left11:09
roop_ joined11:10
roop left11:10
hyperair left11:13
parasti joined11:16
mstormo joined11:17
jast posciak: --suppress-cc=author (author doesn't have to be the same person as sender)11:17
mbrumbelow joined11:18
posciak jast: thank you11:18
jast and there's always --suppress-cc=all11:18
posciak that's exactly what I tried11:18
froschi joined11:18
posciak but it's strange that suppress-from doesn't work11:19
the doc says " If this is set, do not add the From: address to the cc: list."11:19
so...11:19
jast well, from is the sender... even if you suppress that, it still sends to the author, who might incidentally be the same person11:19
this is all conjecture, btw... I have no idea what send-email does internally11:20
posciak ah right, now I get it11:20
so it's not From: from the actual patch, but From as in the sender11:20
mithro joined11:21
fai|safe left11:22
jast I suppose11:23
Remixman_ joined11:25
opalka doener: Thanks for help related to /trunk at the and and standard layout. It was really the reason of failure11:25
froschi left11:25
Remixman left11:25
mcepl left11:26
iruediger joined11:26
iruediger left11:26
iruediger_ joined11:26
Remixman_Remixman11:26
masterkorp left11:28
d0k joined11:28
stepnem ugh... is there no equivalent to the -F option (--show-function-line) in `git diff'??11:29
shruggar I believe there is11:30
mtkd left11:30
mtkd joined11:30
stepnem well, then I'd love to hear about it11:31
mstormo left11:31
sylr Hi11:32
mstormo joined11:32
sylr git grep '\s' matches all lines with a space11:32
why does git grep '\t' matches all lines with a 't' and not a tab character ?11:32
badboy_ joined11:33
TheNewAndy joined11:34
stamina joined11:34
mstormo left11:35
drizzd_ joined11:36
mstormo joined11:36
mbrumbelow left11:36
joel____ autoban for referencing ipad!11:38
shruggar stepnem, look for "diff" in the manual for gitattributes11:38
frakturfreak left11:38
drizzd left11:39
froschi joined11:39
gebi joined11:40
roger_padactor joined11:42
hyperair joined11:42
sagsousuke joined11:44
psoo joined11:44
mstormo left11:46
avar Is it possible to make git format-patch attach the the equivalent of 'git format-patch --stdout > a_patch.patch' ? There's --attach but that still leaves the commit message outside the attachment.11:46
urkud joined11:49
mtkd left11:50
frakturfreak joined11:50
psoo left11:55
avar doesn't look like it, suckery!11:55
iruediger_ left11:55
ponto_ joined11:57
domcat joined11:57
pantsman joined11:57
ntoll left11:57
ponto_ hi, how does git-svn handle empty directories?11:57
iruediger joined11:57
loincloth left11:58
bushwakko left11:58
simplechat left11:58
bushwakko joined12:00
avar I can't even find the source for git-format-patch, hrm12:01
masterkorp joined12:01
dumb joined12:02
SlickT10 joined12:02
dumb please need help12:03
anyone familiar with github12:03
fai|safe joined12:05
ArjenL avar: format-patch is in builtin/log.c12:06
avar thanks12:06
mum-n-dad divVerent: So I ended up with http://pastie.org/92764212:06
For those of you who don't know what I'm talking about - it's this shell script to pull all my repos12:07
When I get fatal: The remote end hung up unexpectedly - it's suppose to retry pulling 5 times12:07
looks like it's trying infinitely12:08
but why am I getting fatal: The remote end hung up unexpectedly in the first place?12:08
divVerent ask the server admin12:08
in case the repo is a git:// and hosted via inetd, it may be inetd's connections-per-second limit12:08
doener mum-n-dad: you need to set retries to 5 in the loop, not outside it12:09
mum-n-dad divVerent: It's github - do you know what its limit is?12:10
divVerent no12:10
mum-n-dad doener: Excellent excellent man!12:10
doener mum-n-dad: first repo: retries goes from 5 to -112:10
fachschaft joined12:10
fachschaft left12:10
jfkw joined12:10
radarek joined12:10
doener mum-n-dad: second repo, retries stays < 0, forever12:10
mariusSO joined12:11
codetroll joined12:11
avar how do I amend the content of the last commit? Do I need to reset HEAD^ and commit again (copy/pasting the commit message) or is there something like --amend?12:11
doener avar: yes, there is: --amend12:12
divVerent you mean, like git commit --amend?12:12
;)12:12
avar The *content*, not the commit message. At least the commit message is the only thing in my editor.12:12
divVerent oh12:13
you first do the content changes you want12:13
mum-n-dad doener: while ! git pull; do ((retries--)) && :; done12:13
divVerent and then you git add the files12:13
mum-n-dad like that mybe?12:13
divVerent and then git commit -a12:13
*--amend12:13
avar: there is also an alternate way: git rebase -i HEAD^12:13
and then change the "pick" to "edit"12:14
avar Ah right, then I can take in the current index during --amend, nice12:14
divVerent obviously, that way makes most sense for ediitng more than one commit :P12:14
afrasi joined12:14
divVerent right12:14
and I bet there is also a git-reset command that undoes the last commit, and keeps the workign tree, and lets you commit again ;)12:14
mum-n-dad doener: Any clue?12:15
SlickT10 left12:18
doener mum-n-dad: http://pastie.org/92766112:19
liye joined12:20
doener divVerent: reset HEAD^. The working tree is only affected with --hard. And --soft makes it keep the index as well.12:21
divVerent ah, nice12:21
tPl0ch joined12:21
divVerent would be nicer if the options would be easier to understand12:21
ntoll joined12:21
doener and rebase -i HEAD^ to edit the commit referenced by HEAD is pure overkill12:21
divVerent like git reset --both, --index, --refonly ;)12:21
or even --work, --index, --ref12:21
froschi left12:22
fai|safe left12:22
doener well, --both would have to be --all-three ;-) (ref, index, worktree)12:22
divVerent right :P12:22
mum-n-dad doener: Awesome dude..12:22
divVerent but it ALWAYS resets the ref ;)12:22
knittl git commit --amend …?12:23
divVerent actually... what if it did not?12:23
dominikh joined12:23
divVerent why shouldn't I be able to JUST reset the index to a specific rev :P12:23
jast the second form of reset does not reset the ref12:23
divVerent odd... doesn't it duplicate git checkout COMMIT -- paths?12:24
jast there are different commands for affecting only the index12:24
no. reset in second form doesn't touch the working tree.12:24
tPl0ch Hi, I have a repository that has some submodules in it, and they work flawlessly. Now I want to clone a bare repo from that and put that on a server. If I do git clone --bare project project.git and send it via scp to the server and try to clone the repo from the server, it gives me following error: http://pastebin.com/TMt8Azjt . I am using git latest (1.7.0.5)12:24
dajero left12:24
mum-n-dad doener, divVerent: http://www.zshare.net/download/552763591f4802ce/12:24
divVerent ah12:24
Bass10 joined12:24
mum-n-dad thanks guys12:24
this is my gift to you12:24
Adaptee joined12:26
ericlee joined12:28
scarabx left12:29
jast tPl0ch: why the detour via a bare repository?12:29
couldn't you just init an empty repository on the server and directly push to that?12:30
Alagar knittl: thank for your time. i need to maintain all the code base in centralized server.12:30
kukks joined12:30
rolfb joined12:31
mythos joined12:32
mythos left12:32
mythos joined12:32
jonalv joined12:33
christophsturm left12:33
christophsturm joined12:33
knittl Alagar: then either set up a git server or use ssh12:34
tPl0ch jast: well, ssh ing into the server and doing an init will take the same time as clone bare and send via scp, but I will try12:34
christophsturm left12:34
christop_ joined12:34
jonalv Okey guys call me crazy or missinformed (but please tell me why) but I want to do a merge using opendiff. IT is awesome for resoving conflicts but I want to do the complete merge using it no matter if the merge was without conflicts. I guess you could compare it to doing a interactive merge but using open diff. Can this be done? And if so, how?12:34
tstclair joined12:35
jast tPl0ch: I was asking mainly because there might have been some hidden pitfalls triggered by doing the manual copy thing. it usually works out pretty well, but well. can't hurt to try. :)12:35
knittl jonalv: where's the problem with git's internal diffing algorithm?12:35
saLOUt left12:36
jast jonalv: problem is that recursive merge often does several merges in the background and sort of combines the result... that might give you quite a lot of manual work if you did all of that merging interactively12:36
Alagar i got the following documentation for the git server seting up. http://engineeredweb.com/blog/10/2/building-your-own-git-server12:37
which one is the best for the server setup12:37
jonalv knittl: firstly I have one big commit so I would have to split it up a zillion times. Second I just love the way open diff has one version to the left one version to the right and the end result in the bottom. Instead of each version as two rows over each other. I guess I am just picky with my visualisations... :)12:37
Alagar knittl: could you please advice me.12:37
skoop left12:37
knittl Alagar: there's ssh missing12:38
jonalv: i don't know how, but you can tell git to use a different conflict visualizer12:38
codetroll left12:38
Meow`` joined12:38
mithro left12:38
knittl diff.* or difftool in git config iirc12:38
jonalv knittl: yea, but the thing is there is no conflict. I just want to visualze the diffs and "cerry-pick" the parts I want...12:39
Alagar knittl: iam able to view for the following methods for git integration Gitosis, gitolite, gitweb12:39
knittl: which one is the best for our centralized codebase management. ?12:39
knittl Alagar: that's why i said it is missing12:39
Alagar: i don't know i only use git locally on or servers not administered by me12:40
tPl0ch jast: nope, no luck, still the same error12:40
mithro joined12:41
knittl jonalv: how do you want to cherry pick when using another program …?12:41
jonalv knittl: manually, sry maybe cherry+pick isn't exactly what I want to do. IT's just sort of what I want to do12:41
knittl: What I want to do is apply some parts of a commit but not all of them12:42
Alagar knittl: thanks, could you please give me any good documentation for the git centralized server setup ?12:42
jonalv knittl: And I want a fancy user frienldy interface for doing that. (and opendiff seems like a good candidate)12:42
knittl so you want to do a git add --patch?12:43
Alagar: http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=man+git+server12:43
jonalv knittl: yea12:43
knittl look into diff.* or difftool12:44
jonalv: http://www.kernel.org/pub/software/scm/git/docs/git-config.html12:44
liye_ joined12:44
liye left12:45
jonalv knittl: was there any particular option you had in mind on that page?12:45
liye_liye12:45
jonalv knittl: oh nm (I missed you line before)12:46
knittl jonalv: diff.* and difftool12:46
curtana git can already use opendiff for a merge tool. but i don't think the merge resolution process works in the way you want it to jonalv12:46
jonalv curtana: oh12:46
curtana: how so_12:47
?12:47
curtana git mergetool -t opendiff12:47
jonalv curtana: yea but that is for resolving conflicts12:47
knittl just read the manpage about git config dp12:48
* :P12:48
auslander joined12:48
auslander left12:48
auslander joined12:48
DavidKlein joined12:50
Zephyrus joined12:51
curtana jonalv, yes, exactly. i don't think you can do what you want with git12:51
Alagar knittl: thanks. do you know how to setup ssh auth using ssh keys. ?12:51
jonalv curtana: no I am beginning to fear the same... :)12:51
curtana though maybe...12:51
dumb left12:52
curtana you could use git-difftool -t opendiff <commit that you want to pull bits from>12:52
then use the difftool to apply hunks to the local tree12:52
it would not be a merge or cherry pick in the git meaning of the term. but it would perhaps do what you want12:52
jonalv curtana: just to clearify the lingo, with " use the difftool to apply hunks to the local tree" do you mean to stage?12:53
knittl Alagar: man ssh ;)12:54
Alagar: http://pkeck.myweb.uga.edu/ssh/12:54
Zephyrus left12:54
Remixman_ joined12:56
Remixman left12:57
mithro left12:57
d0ugal left12:58
d0ugal joined13:00
jonalv curtana: that worked and it was exactly what I wanted to do! Thank you! curtana++13:01
psankar joined13:01
urkud left13:01
mdr22 joined13:02
Alagar knittl: the git server installation is very hard for me. iam not able to view any good manual13:02
knittl which system are you on? @ Alagar13:02
Alagar knittl: iam using CentOS 5.313:02
knittl: i have done the git installation using the following commands( #yum install git13:03
knittl: iam not able to findout how to config then next13:03
knittl Alagar: have you read the link about ssh, i provided?13:04
do that, then you have a working ssh server with keys13:04
masterkorp left13:05
Alagar knittl: thanks for your effort and time. i have done the ssh key generation but then iam not able to findout next steps13:05
knittl copy the public keys to the server13:06
try logging in13:06
Adaptee left13:07
Remixman_ left13:07
Remixman joined13:07
g0bl1n left13:08
loincloth joined13:08
Adaptee joined13:08
psankar left13:10
przemoc joined13:11
mithro joined13:13
urkud joined13:13
Guest24555 joined13:14
Semikolon joined13:14
cbreak_work anyone got an URL to the bash script that provides auto completion of git commands and their parameters?13:15
knittl cbreak_work: it's in the git repository13:16
in contrib/completion13:16
cbreak_work neat, thanks13:16
shruggar 545bd4b38368e3c2a3958133bbeef6a19e831fff13:16
Gitbot [git 545bd4b38]: http://tinyurl.com/y37pyga [blob]13:17
shruggar I wonder if gitbot would pick up on... HEAD:contrib/completion/git-completion.bash13:17
Remixman left13:17
shruggar hm, nope13:17
Remixman joined13:17
shruggar oh, probably the HEAD it doesn't like, I /am/ rather dumb13:18
royalty joined13:18
knittl master13:18
refs/heads/master13:18
hmm…13:19
gaveen joined13:19
Guest24555robinr13:19
shruggar well 545bd4b got the link, even if it was completely unnamed :)13:19
tanoku joined13:19
urkud left13:20
robinr anyone with the same problem as I. make barfs on xxdiff13:20
Meow`` left13:20
robinr it's not git version, but my kubuntu I guess13:20
frakturfreak left13:22
_iron joined13:23
royalty left13:23
christop_ left13:26
christophsturm joined13:27
y10 joined13:27
psynaptic left13:28
psynaptic joined13:28
psynaptic left13:28
psynaptic joined13:28
psynaptic left13:29
frerich joined13:30
frakturfreak joined13:30
y10 left13:30
liye left13:30
cbreak_work nice, git-completion can even make my prompt show the branch I am on13:30
frerich Hi! Is anybody aware of some web pages about different models for doing software releases of source code which is managed with git? I'm interested in different approaches to make sure that bug fixes from a stable branch end up in the branch for the next major release, and how to do so without having developers forget about it.13:31
g0bl1n joined13:31
liye joined13:32
Remixman_ joined13:34
Remixman left13:34
Remixman_Remixman13:34
RandalSchwartz you mean, besides the text that comes with git itself?13:34
frerich?13:34
camonz joined13:35
RandalSchwartz "man gitworkflows"13:35
Gitbot RandalSchwartz: the gitworkflows manpage can be found at http://git.or.cz/man/gitworkflows13:35
RandalSchwartz you want something more than that?13:35
aspotashev|eeepc joined13:35
mefesto joined13:35
frerich RandalSchwartz: Yes, exactly - I saw that already but I wondered how other people do it. I've been talking to the Amarok people (a KDE media player) and learned that they just tag 'master' every now and then and release that - and all features (and bugfixes) are done in separate branches and eventually merged into master, so that 'master' never gets and commits but merge commits.13:36
nbaum joined13:36
[Po]lentino joined13:36
frerich Another model I learned was that bugfixes are always done in a 'patchlevel' branch, from where they occasionally get merged into a 'minor release' branch, from where they eventually get merged into a 'major release' branch.13:36
RandalSchwartz Yeah, I've seen that done by past clients13:37
frerich So for a software with x.y.z releases, there's one branch for X releases, one for Y and one for Z.13:37
mithro left13:37
frerich We'll need to do a new major release of our (git hosted) software real soon now, after which we can start a new branching workflow. So I'm researching a bit about different approaches and how much human work they require.13:38
crab frerich: nvie.com/git-model13:38
vu3rdd left13:38
frerich crab: Interesting link, thanks a ton! That's exactly the kind of thing I'm looking for.13:39
nbaum Is there a way to add only changed lines matching a particular regex to the index?13:40
frerich nbaum: You could use 'git add --patch' and then use the 'find next hunk to stage given a regexp' feature.13:41
Remixman_ joined13:42
Remixman left13:42
level09 joined13:43
level09 if i have a team of many developers, should I assign different ssh logins for each dev ?13:43
or can i just use one ssh login for all ?13:43
simNIX joined13:43
liye left13:43
shruggar level09: see gitolite13:43
level09 does that mess with the development workflow ?13:43
level09 looking13:44
dominikh left13:44
psoo joined13:44
liye joined13:44
dominikh joined13:44
crab frerich: the merge-into-master model works too, you can even commit stuff directly to master without any ill-effects.13:44
nbaum frerich: There's a few hundred files, with one of these changes per file. / seems to only search to the end of the current file.13:45
LiamH joined13:45
crab frerich: just don't commit things to master and cherry-pick to backport branches. git is positively awful at that. better to merge up than trickle down.13:45
spearce joined13:46
crab though personally i find it very hard to do that (work in the old branches)13:46
TeckniX joined13:46
spearce left13:46
frerich Yes, it certainly requires some discipline.13:47
spearce joined13:47
cannonball joined13:47
Remixman joined13:47
opalka left13:47
psoo left13:47
Remixman_ left13:48
liye left13:48
crab i think it means, in practice, that your older versions become stale sooner13:50
auslander left13:51
Remixman left13:52
Remixman_ joined13:52
robinr left13:53
mithro joined13:54
manyoso joined13:54
petercoulton joined13:56
psoo joined13:57
smuf joined13:57
Remixman joined13:57
Remixman_ left13:58
giallu left13:58
t0rc joined13:59
zoniq left13:59
zoniq joined14:00
ph^ left14:01
domcat left14:03
Remixman left14:03
nevyn^_ joined14:04
nevyn^ left14:04
nevyn^_nevyn^14:04
curtana jonalv, you're welcome ;)14:04
sepen joined14:05
petercoulton left14:05
nevyn^ left14:05
nevyn^ joined14:06
petercoulton joined14:06
sepen hi! could be possible to 'hack' my working copy to modify every date appeared in 'git log'?14:06
could be possible in the repository too?14:06
curtana jonalv, but get into the habit of commiting small, individual changes. a good rule of thumb is: if you would want to cherry-pick this change, then it should be in its own commit14:06
[Po]lentino_ joined14:07
_iron left14:07
auslander joined14:08
jrmuizel joined14:08
jonalv curtana: yes, now this was for some text that I got sent to me...14:08
[Po]lentino left14:09
roop__ joined14:09
roop_ left14:09
unix_remote joined14:09
dmg left14:09
curtana sepen, depends, what do you want to do to the dates14:09
sepen curtana, replace year 2010 by 200914:10
tty1 hi guys14:10
curtana don't think you can do that easily14:10
semi-easily14:10
tty1 when i do git status it shows a file which i removed as being copied to a file to which it was not copied (it is a new file but it is unreleated to the file i deleted). is there a way i correct this misconception on git's part before i commit?14:11
curtana you could run git-format-patch, edit the files that are spat out, and re-apply them with git-am perhaps14:11
sepen hmmm14:11
jrmuizel left14:12
RandalSchwartz does the new file have roughly the same contents as the old file?14:13
it must, or git wouldn't think it's a copy14:13
sepen curtana, can't be possible directly on the repo?14:14
tty1 RandalSchwartz, well the old file was very minimal, only had <10 ines in it.. so despite being an entirely new class with entirely new methods the header ont he file (which is larger) i guess may make it think its similar when its not.14:15
RandalSchwartz, the license header is the majority of it14:15
RandalSchwartz one way would be to have two separte commites14:15
commit first without the new file, then commit with14:15
roop__ left14:15
RandalSchwartz that'd ensure no relationship14:15
tty1 RandalSchwartz, there has got to be a better way14:16
psankar joined14:16
RandalSchwartz well - if the license gets edited by someone, don't you want that to apply there?14:16
tty1 RandalSchwartz, if i do it in two seperate commits then the intermediate commit will be broken, i dont want that14:16
RandalSchwartz, sure14:16
RandalSchwartz then don't worry about it14:16
that's the only way that "copy" info will be used14:16
tstclair left14:16
tty1 RandalSchwartz, i just dont want the logs to show it as the same file14:16
RandalSchwartz the logs are fiction :)14:16
tty1 bah14:17
RandalSchwartz git isn't "remembering" the copy14:17
jony left14:17
RandalSchwartz it's observing the copy14:17
every time :)14:17
if you don't pass -C, it won't find that14:17
and as you say, it's mostly the same file, so *I* would want to see it as a copy anyway14:17
divVerent there is a reason why not14:18
"git blame" :P14:18
Yuffster joined14:18
jboom joined14:18
tty1 sounds reasonable14:19
RandalSchwartz even git blame doesn't follow semi-copies without -C14:19
so again, if you're seeing it as a copy, it's because you asked for it14:20
mtkd joined14:20
divVerent what are "semi-copies"?14:20
RandalSchwartz copies detected by "similarity"14:21
as opposed to having identical content14:21
GarethAdams|Work joined14:21
TheNewAndy left14:21
tstclair joined14:21
divVerent RandalSchwartz: ah, okay14:22
so when I move a file and hten change it14:22
I should do a separate commit14:22
so git blame works wihtout -C :P14:22
RandalSchwartz if you can14:22
divVerent sure14:22
this may cause a broken commit of course14:22
RandalSchwartz sometimes, it breaks the build14:22
yeay14:22
divVerent like with java classes, where the file name must be in the file14:22
RandalSchwartz I just flag those in the commit message14:22
"BISECT IGNORE"14:22
divVerent does git-bisect know about that? ;)14:23
kpreid_ joined14:23
kpreid_ left14:23
RandalSchwartz so if someone is bisecting, they'll know.14:23
divVerent ah, only for the user :P14:23
RandalSchwartz no - but there should be some sort of hook like that :)14:23
aspotashev|eeepc left14:23
divVerent a bisect script could sure return a compile-fail status immediately :P14:23
instead of trying14:24
jmut left14:24
RandalSchwartz I'm not sure a script can return "skip"14:24
kpreid_ joined14:24
frakturfreak left14:24
RandalSchwartz and you don't want to return "bad", because that would imply an endpoint14:24
divVerent script can return three states14:25
good, bad , compile fail14:25
RandalSchwartz ahh - it can14:25
divVerent latter is skipped14:25
RandalSchwartz exit 125 = skip14:25
nice14:25
divVerent so it wouldn't be hard to check the commit message and immediately exit 12514:26
for faster bisecting :P14:26
RandalSchwartz indeed14:26
C_sun So. How do I search for a string (a la git log -S) in all unreachable commits?14:26
RandalSchwartz wanders off14:26
tgunr joined14:27
mtkd left14:27
Mpenz joined14:28
shruggar C_sun: I expect something involving "git fsck --unreachable" and a 'for' loop14:29
C_sun shruggar: I fear that that might only show the unreachable heads, not all unreachable commits.14:29
RobertLaptop joined14:29
tgunr left14:29
shruggar C_sun: but if you have all unreachable heads, "git log -S" on each of them would do the job14:31
crab what is an unreachable head?14:31
oh, i get it.14:31
C_sun a head is a commit who is not the parent of another commit.14:31
shruggar I'm pretty sure that something only counts as "unreachable" if nothing at all points to it. So /all/ unreachable commits would be heads14:32
psankar left14:32
shruggar git log -SwhatIwant "$(git fsck --unreachable|sed -n 's/unreachable commit //p')"14:32
mtkd joined14:32
jovianjake left14:33
shruggar wait, cancel those quotes14:33
force of habit :)14:33
psankar joined14:34
C_sun Great ... looks like git-fsck has an endless loop14:34
shruggar it really just takes a long while. You'll probably want to redirect output to somewhere14:35
C_sun No I mean when I run git-fsck --unreachable -v, it just stops halfway through14:35
mum-n-dad doener: while ! git pull && sleep 5 && ((retries--)); do :; done14:35
doener: Is that the right way to add the sleep?14:35
I still haven't figured out what causes the "fatal: The remote end hung up unexpectedly" though.14:36
As I just wrote in #github:14:36
froschi joined14:36
mum-n-dad I just wrote this zsh script to mass pull all my GitHub repos - http://pastie.org/927642 - but I keep getting "fatal: The remote end hung up unexpectedly" for certain repos. What's GitHub's connections-per-second limit, i.e. must I wait a number of seconds in between my pulls? Could it be a firewall limitation?14:36
C_sun mum-n-dad: it certainly looks ugly from a sh perspective14:36
t0rc left14:36
dmg joined14:36
mum-n-dad C_sun: is there a better / neater way to do it?14:36
C_sun: "while ! git pull; do :; done" will keep retrying "git pull" if it fails14:37
LRN left14:37
psankar left14:37
C_sun for ((i = 5; i >= 0; --i)); do if git pull; then break; fi; sleep 5; done;14:38
shruggar git pull && break || sleep 5? ;)14:38
psankar joined14:40
dj_tjerk joined14:40
mum-n-dad shruggar: what does that do? looks neat..14:40
C_sun: oh heeeeeeeelllllll no :D14:40
C_sun heel no?14:40
heh14:40
amcsi_ left14:40
giallu joined14:40
pklingem joined14:40
shruggar foo && bar || baz is a shorter way to type if foo; then bar; else baz; fi14:41
dmg left14:42
C_sun shruggar: perhaps. But it reads like strcmp(foo, bar) == 0, printf("that matches") && a=5, b=4 || break;14:43
marshall joined14:43
C_sun (you'd never do that in C)14:43
mum-n-dad ok how about this - http://pastie.org/927926 - will it break the script if "git pull" gets an error i.e. the "fatal: The remote end hung up unexpectedly"?14:43
PerlJam C_sun: you might for an obfuscation contest14:43
thiago shruggar: it's not exactly the same thing14:44
mum-n-dad or will the loop just continue?14:44
thiago shruggar: it's equivalent to: if foo; then if ! bar; then baz; fi; else baz; fi14:44
mdr22 left14:45
shruggar thiago: I suppose that's true, yes. In this case "bar" was "break", which I don't actually expect to fail :)14:45
thiago ok, then it makes sense14:45
shruggar but yes, as a general case it's not equivalent14:46
tedoc2000 joined14:46
magn3ts left14:46
mum-n-dad Anyone? At http://pastie.org/927926 - will "while ! git pull; do break; done" stop the script if "git pull" fails, or will the loop keep on running?14:47
wereHamster mum-n-dad: that will run git pull one time, it's a long way to write 'git pull'14:48
jrmuizel joined14:49
mum-n-dad Sorry?14:49
That script will run git pull in all my repos - I have a lot of them14:49
Trying to do a mass pull script14:49
wereHamster if git pull succeeds, the loop body is not executed, if pull succeeds, the loop body executes which breaks out of it right away..14:50
adaro joined14:50
mum-n-dad I keep getting "fatal: The remote end hung up unexpectedly" though - so I want the script to terminate whenever that happens14:50
thiago mum-n-dad: while ! git pull; do sleep 10s; done14:50
mum-n-dad wereHamster: Did you see the whole script though?14:50
thiago: But that won't terminate the script if it fails, will it?14:51
that'll just make it sleep 10 seconds if it fails, and then the whole loop will run again?14:51
thiago if it fails, it will sleep for 10 seconds14:51
mum-n-dad (when I say loop, I refer to http://pastie.org/927926)14:51
thiago: Not quite what I need but its cool14:51
thiago do you want to keep on trying to pull?14:52
mum-n-dad no, if it fails i want the whole script to stop14:52
adaro there is this repository in svn that contains a number of projects, two of which i would like to fork, ideally i want to copy just those projects to a git repository and keep up to date with changes on the svn trunk14:53
is there an easy way to do this ? i thought about setting up a cron job that uses git svn and pushes the changes to a remote repostory14:54
shennyg joined14:54
adaro and branch of that, but i am wondering if that will allow me to easily pull in the changes and if its a problem that i am not copying the entire repository14:54
thiago mum-n-dad: git pull || break;14:55
frerich left14:55
adaro but just two projects (out of 20)14:55
mum-n-dad thiago: will that break the whole script, including the parent for folder in $PWD/**/.git(:h); do loop?14:56
jonshea joined14:56
lanthan joined14:56
stepnem shruggar: great, that works, thanks! (the diff -F <=> .gitattributes thing)14:56
thiago mum-n-dad: yes14:56
mum-n-dad: I see you're using zsh, so yes14:57
mum-n-dad cool14:57
awesome thiago.. thanks!14:57
thiago: http://pastie.org/92792614:58
what do you think?14:58
balgarath joined14:58
mum-n-dad my git_pull_all.sh14:58
knittl isn't there a git rebase -i master...branch?14:58
shruggar stepnem, oh, good to know. I was just skimming the manpage and it looked relevant :)14:58
knittl to rebase onto the merge base of the two?14:58
balgarath hi all. trying to checkout a remote branch and getting this: http://pastie.org/92795814:59
tried a few solutions on google, but nothing working yet14:59
cYmen Is it possibly to remotely create a repository?14:59
Say I just want to create a bare repository for backups at a machine I have ssh access to..14:59
balgarath lol, nm15:00
im retarded15:00
hakunin joined15:00
balgarath and have been up waaay too late :)15:00
bushwakko left15:00
mtkd left15:00
cbreak_work knittl: does that make sense? if you're on branch, then rebasing onto the merge base is a no op15:01
cYmen: log in via ssh, and git init --bare15:02
magn3ts joined15:02
mum-n-dad Thiago: At http://pastie.org/927926 - this script should: if "git pull" fails, retry it 5 times (but sleep 5 seconds prior to each attempt) - and if that too fails, stop the whole script. Am I doing it right?15:02
altrux joined15:02
psoo left15:03
tty1 anyone ever have any problem with git causing their network to become unstable every couple of days?15:03
cbreak_work git doesn't do anything on the network on it's own15:04
cYmen cbreak_work: alright15:04
brodyberg joined15:04
cYmen cbreak_work: Now what's the easiest way to attach the two repositories?15:04
cbreak_work you don't need to do anything on the remote15:05
on the one you want to push from, you can git remote add the other15:05
jonalv tty1: Have you ever noticed that it often rains when you are watching television?15:05
cYmen cbreak_work: should I use --mirror? I don't understand the stuff in the man page :/15:05
masak joined15:06
cbreak_work no15:06
stamina left15:06
cbreak_work --mirror isn't a valid flag for git remote15:06
cYmen oh...15:07
kar8nga left15:07
cYmen my man page says otherwise15:07
git remote add [-t <branch>] [-m <master>] [-f] [--mirror] <name> <url>15:07
cbreak_work hmm... you're right15:08
radarek left15:08
cbreak_work but don't do it anyway15:08
cYmen kk15:08
is there a way to specify the repository with relative paths?15:08
so cymen@server:foo for cymen@server/home/cymen/foo ?15:09
jeevan_ullas joined15:09
wereHamster user@host:path/relative/to/users/home15:09
knittl cbreak_work: i am doing a rebase -i to sqash, fixup and reorder commits15:09
cbreak_work man git-clone has a ton of possible url syntaxies15:09
Gitbot cbreak_work: the git-clone manpage can be found at http://git.or.cz/man/git-clone15:09
Zephyrus joined15:09
psankar left15:10
hakunin left15:10
hakunin joined15:10
fcoury joined15:11
cYmen wereHamster: I tried that and it didn't work. Let me double check.15:11
icwiener joined15:11
darwin_ joined15:12
cYmen wereHamster: It tries to add the :foo part to the hostname O_o15:12
knittl cYmen: it's user@host/path/…15:13
sagsousuke left15:13
wereHamster [user@]host.xz:path/to/repo.git/ (straight from the man page)15:14
cYmen maybe it's a problem with ssh15:14
cbreak_work left15:15
wereHamster cYmen: are you using gitolite?15:15
carl- left15:15
cYmen no15:15
I think..at least it doesn't ring any bells.15:16
wereHamster so you do have shell access to the server, right?15:16
cYmen yup15:16
akamaus joined15:16
wereHamster what does 'ssh user@host ls path/to/repo.git' show?15:16
JEEBczJEEB15:17
mum-n-dad I think I'm done with my git_pull_all.sh: http://pastie.org/92792615:17
Thanks guys for your help15:17
cYmen wereHamster: HEAD config ...15:17
lanthan left15:17
wereHamster cYmen: that looks correct. How about 'git ls-remote user@host:path/to/repo.git' ?15:18
stamina joined15:18
cYmen bleagh15:18
I added ssh:// in front and that breaks it.15:18
wereHamster yes, it does, as per man page15:19
cYmen "An alternative scp-like syntax may also be used with the ssh protocol:"15:19
level09 how do I deal with @ in the password ?15:19
cYmen sounds to me like it should be used with the same ssh:// prefix15:19
level09 tried escaping15:19
and %4015:19
but did not work15:20
cYmen wereHamster: Thanks!15:20
knittl so, let's grep for the commit i am pretty sure i saw a while back15:20
wereHamster cYmen: scp-like syntax doesn't use the ssh:// prefix!15:20
engla joined15:21
cYmen Yeah, I was only justifying my error...15:21
wereHamster if in doubt, follow the man pages ;)15:21
peritus- joined15:21
peritus- hey. what's the opposite of git-format-patch ? I want to add 12 .patch files to my HEAD (complete with date/author/commit message/etc)15:22
crab peritus: git-am15:22
knittl peritus-: git am15:22
peritus- crab, knittl: but they are not in a mailbox :(15:22
but i'll read man git-am again15:23
Gitbot peritus-: the git-am manpage can be found at http://git.or.cz/man/git-am15:23
knittl ah, 9f21e97 has to do with rebase and ... syntax15:23
Gitbot [git 9f21e97]: http://tinyurl.com/y82b324 -- rebase: fix --onto A...B parsing and add tests15:23
knittl so it only works with --onto, i see15:23
kpreid_ left15:24
knittl peritus-: just give it a file which looks like a mailbox15:24
tek0 can anyone imagine a solution for working with GIT_DIR=foo/.git-foo GIT_WORK_TREE=foo git submodule update --init? git says "fatal: working tree 'foo' already exists"15:26
peritus- knittl: :*15:26
tek0 updating after manually cloning works15:26
knittl :>15:26
seanmccann joined15:26
seanmccann left15:26
disappearedng joined15:26
raichoo left15:27
disappearedng_ joined15:27
shruggar is there a tool for easily deleting branches from a remote which do not exist locally? I would like to delete all refs/heads/work/* from the remote "zaonce" which do not exist in my local refs/heads/*15:29
tPl0ch left15:29
frakturfreak joined15:30
ProperNoun joined15:30
Nihathrael joined15:30
ProperNoun left15:30
ProperNoun joined15:30
offby1 hmm15:31
I guess "git remote prune zaonce" isn't it.15:31
shruggar yeah, that's the opposite15:31
kpreid_ joined15:31
crab wereHamster: did you find it?15:32
cYmen hm..I want to version control some html pages and easily push or whatever them to the apache documentroot. What would be a good way to do that? Should I just use a shell script and copy everything?15:32
Nihathrael Hi all, i'm having a problem with non http pushes. Git will always hang after the following message: http://gist.github.com/373818 . I've tried fiddeling with my bashrc because i read it's not supposed to contain any echos and stuff, otherwise ssh might not work, but even without a bashrc it will not work. Firewall also doesn't seem to be a problem, since even when running in DMZ the problem accures unchanged. normal ssh to github test server works ...15:32
... fine, pulling also. Just the push fails15:33
any ideas?15:33
MattDeKrey joined15:33
disappearedng_ left15:33
disappearedng left15:33
ThunderChicken Check your .profile in addition to your .bashrc15:34
mum-n-dad How come I can "git clone git://github.com/railsdog/spree-active-shipping.git" but not "git pull" an existing clone of the repo? (fatal: The remote end hung up unexpectedly)15:34
wereHamster crab: yes. I read it only quickly but it looks ok15:34
mum-n-dad: check the url (git config remote.origin.url or git remote show origin)15:35
Nihathrael ThunderChicken: i don't have a .profile15:35
ixti left15:35
mum-n-dad wereHamster: Wrong URL!15:36
Thanks man!15:36
lanthan joined15:38
crab wereHamster: thanks.15:39
mum-n-dad im out guys, thanks again!15:39
mum-n-dad left15:39
ajpiano joined15:41
mefesto left15:41
bentob0x left15:42
ph^ joined15:45
ajpiano left15:45
ph^_ joined15:47
auslander left15:47
ajpiano joined15:48
auslander joined15:48
auslander left15:48
auslander joined15:48
ProperN[out] joined15:50
petrux left15:50
disappearedng_ joined15:50
disappearedng joined15:50
ph^ left15:50
raichoo joined15:50
ProperNoun left15:53
florianb joined15:55
spearce left15:56
thiago_home joined15:56
Pupeno left15:57
lanthan left15:57
ph^_ left15:57
friskd joined15:58
jstemmer joined15:58
ph^ joined15:58
petercoulton left15:58
loincloth left15:58
sh1mmer joined15:59
stepnem shruggar: too bad there doesn't seem to be a way to have a global .gitattributes file like .gitconfig15:59
wereHamster there is15:59
stepnem \o/16:00
cYmen If I want to remote push to a non-bare repository. How do I set it up?16:00
stepnem wereHamster: pleas do tell!16:00
shruggar info/attributes, I assume16:00
stepnem please* (sorry, I'm so excited ;))16:00
wereHamster oh, .gitattributes. I misread that as .gitignore -.-16:00
stepnem ah :|16:00
shruggar: that's repo-local16:00
setuid joined16:02
alley_cat joined16:02
shruggar really I think those diff-options don't belong in gitattributes, really should be part of gitconfig16:02
setuid If a user is running "git clone ssh://user@remote/git/repo", and the 'git' binary is not on the standard path on the remote, is there some way to get that working? IOW, is it parsing the environment of "user" on the remote first?16:03
Can I set up $HOME/.bash_profile with some PATHs that point to the proper 'git' binary location?16:03
sh1mmer left16:03
kpreid_ left16:03
wereHamster ~/.bashrc16:04
setuid So it does parse remote-user's profile?16:04
wereHamster where 'it' is the user's shell16:05
setuid Right16:05
ajpi joined16:06
jonalv left16:07
ajpiano left16:07
cYmen Damn. Google throws a ton of howtos at me that explain how to make repositories available with apache but not a single one that explains how to track websites served with apache.16:07
setuid cYmen, netcraft?16:07
ekontsevoy I have a bare repository which we access via git-shell, and files in that repo somehow get chmod 444 (read-only) and git-push starts to fail. Do you guys have an idea where to look?16:08
cYmen setuid: huh?16:08
tvw left16:08
knittl ekontsevoy: un-chmod it16:08
cYmen I could just push to a non-bare repository and put "git reset --hard" in a post receive hook. Would that work?16:09
bremner ekontsevoy: did you init --shared? see man git-init16:09
Gitbot ekontsevoy: the git-init manpage can be found at http://git.or.cz/man/git-init16:09
jboom left16:09
lessthanzero joined16:10
lessthanzero I've been googling for an hour, and I can't find any help for my question, which is...16:10
knittl lessthanzero: 42 is more than zero ;)16:11
lessthanzero I want to push to my gitosis based bare git repo - I can clone from it just find but when I push back, I get error "unable to create thread: Resource temporarily unavailable"16:11
ponto_ left16:11
lessthanzero knittl: how many roads must a man walk down..16:11
knittl 716:12
lessthanzero ERR - 42.16:12
bremner lessthanzero: sounds like a github specific issue16:12
lessthanzero bremner: *gitosis ?16:12
setuid left16:12
bremner oh, gitosis. sorry.16:12
lessthanzero (you mean, gitosis. I'm not using github)16:12
;) hrrm.. ok.16:12
I can't find much of ANYTHING.16:13
bremner everybody has switched to gitolite16:13
tg left16:13
bremner can you ssh onto that machine?16:13
tg joined16:13
Theravadan joined16:14
tg left16:14
lordi joined16:16
lordi http://www.managerleague.com/index.pl?ref=284582 - The Best Online Football Manager, Sign Up Please!:)16:17
mw joined16:17
lordi left16:17
binjured joined16:17
ProperNoun joined16:17
lanthan joined16:17
tg joined16:18
jay-mccarthy how do i do something like: svn export -r rev repo/path?16:18
ekontsevoy bremner: yes, it is --shared and I determined that they become read-only after I run git-gc16:18
jboom joined16:19
ProperN[out] left16:20
bremner ekontsevoy: what user do you run git-gc as? are they in the right group?16:20
cYmen If I git clone/pull what determines the access rights of the file? My umask?16:20
thiago_home yes, or your group-sharing settings16:20
cYmen: see man git-config16:21
Gitbot cYmen: the git-config manpage can be found at http://git.or.cz/man/git-config16:21
ekontsevoy bremner: yes16:21
bremner ekontsevoy: hmm, no more ideas from me16:21
sh1mmer joined16:21
ekontsevoy bremner: yeah, I have another repo sitting side by side, where this isn't happening. I'll just examine both very closely and hopefully will find the difference! :)16:22
gabeodess joined16:22
[Po]lentino_ left16:22
lhz joined16:23
ekontsevoy By the way, for future reference, what's the best way to take a repo from a person who's been working on it for a while and make a bare shared clone of it?16:23
gabeodess wereHamster: Thank you for your guidance yesterday, it worked just as you said16:23
you saved my ass.16:23
vu3rdd joined16:23
rolfb left16:23
cYmen thiago_home: so I simply add core.sharedRepository = true to the bare repository?16:23
or to the checkout of that user?16:23
jeevan_ullas left16:24
thiago_home cYmen: after you clone16:24
[Po]lentino_ joined16:24
Belna_ joined16:24
defectiv joined16:29
BugeyeD joined16:30
ixti joined16:30
trivol left16:32
BugeyeD hi all. newbie-ish question. i cloned a repository, created a branch, committed changes to the branch, then cloned the branch to another box. on the second box i committed changes, then used 'git push' to send the changes to the first clone. the command completed successfully, but i don't see the changes on the first box. what am i missing?16:32
esr Is there a git-format-patch incantation I can use to make a patch from the diff between HEAD and the working state? If so, what is it?16:32
Nihathrael BugeyeD: git checkout possibly16:32
BugeyeD Nihathrael: so the push updated the .git but not the working files?16:33
Nihathrael yep i think that's the case16:33
not absolutely sure though, haven't done that in some time16:33
BugeyeD Nihathrael: that's so simple, i hope it's correct. thanks. :)16:33
Nihathrael esr: git diff > file.patch or is it something else you are looking for?16:34
khaase left16:35
esr Nihathrael: I'm looking specifically for a git-format-path invocation; I want to email the result.16:36
s/path/patch/16:36
shruggar is there any way to get "git status" to note that a file was copied?16:37
galderz left16:37
knittl shruggar: it usually automatically does16:37
maybe try -C and -M16:37
shruggar I've seen it detect moves, but not copies16:37
cYmen hm..I'm trying to cd to a dir and run git pull in a post-receive hook but it somehow doesn't work can I not change directories in a hook or something?16:38
shruggar if it does at all, it should here. These are just literal "cp foo bar", as I'm going to remove foo later, but need it for now during migration16:38
knittl shruggar: it should notice it16:38
shruggar: but there's no difference if a file is copied or not16:39
BugeyeD Nihathrael: hmmm, git reset --hard <commit> seemed to be needed. does this sound wrong?16:39
chittoor left16:39
knittl shruggar: AND finally, you have to add the new file, for git status to recognize it as copied16:39
crab esr: git-format-patch can't do that.16:39
Nihathrael BugeyeD: yep, that doesn't sound right16:40
BugeyeD grr16:40
level09 left16:40
shruggar yeah, all been added, and I am using git-svn, so I want them to be written to svn as copies16:41
jasonmog joined16:41
jasonmog how do i reset a deleted file?16:41
mastro left16:42
cYmen thiago_home: somehow it doesn't work. is this line in .git/config right: sharedRepository = true16:42
thiago_home cYmen: which section is it in?16:42
jasonmog i have not committed yet16:42
knittl jasonmog: git checkout -- file16:43
jasonmog werd16:43
knittl shruggar: puh, i don't know if git-svn will handle copies correctly16:43
jasonmog zomg u rawk16:43
kpreid_ joined16:43
Nihathrael BugeyeD: did you do "git checkout <branchname>?16:44
zomg jasonmog: I know but thanks16:44
BugeyeD Nihathrael: i tried that first, but was already in that branch.16:44
cYmen core16:44
thiago_home: core16:44
ereslibre joined16:45
jasonmog left16:45
Nihathrael BugeyeD: any reason you can not pull instead of push?16:45
thiago_home cYmen: that should be how...16:45
aresnick joined16:46
cYmen hm..whenever I fetch the rights are always rw-------16:46
BugeyeD Nihathrael: wouldn't the pull come from the original clone source?16:46
dreiss joined16:47
BugeyeD Nihathrael: honestly, i'd rather push - so i know the "source" has been updated with my local work16:47
Nihathrael you said you cloned from ORIGIN, now you have pc1 and pc2 right? now you cloned pc1 to pc2, made some work on a branch. Now the right way to make pc1 have your changes is by using pull on pc1 i think16:47
usually if you use a central repo you want to push into, you would use a bare repo16:48
without a checkout16:48
virhilo joined16:48
BugeyeD Nihathrael: i made changes on pc2. was hopiong i could push to pc1, then later from pc1 push to ORIGIN. am i barking up the wrong tree?16:48
virhilo git reset --hard b05da413030a26de51430d429cae072389ac7275 and now how to apply it on remote repo?16:48
knittl BugeyeD: you should only push to bare repositories16:49
i assume pc1 also has a working tree/checkout16:49
you will only get problems with pushing that way16:49
BugeyeD okay, i see. i just need to go back and read up on the underlying concepts. thanks all.16:49
knittl yw16:51
Nihathrael no problem16:51
codetroll joined16:51
afrasi left16:52
virhilo left16:53
kpreid_ left16:53
florianb left16:54
cYmen How are hooks executed? I have this simple script: http://paste.pocoo.org/show/204566/ it works fine if executed in a terminal but fails as post-receive hook.16:55
riz2 joined16:55
shruggar cYmen: most common problem is with GIT_DIR being set16:56
cYmen shruggar: what dat?16:56
jakubzalas joined16:56
shruggar an environment variable16:56
cYmen Yes, I get that but what does it do, how is it used, etc etc :)16:56
slonopotamus joined16:57
shruggar it tells git where to look for .git16:57
I assume you're trying to do an "update my website when I push" script16:57
cYmen Most definitely, yes. :)16:57
I tried googling for one but only found howtos on setting up web access to repositories...16:58
shruggar unset GIT_DIR, and it will probably work as expected. Though for the love of dog, don't use "git pull", use "git fetch" followed by "git reset --hard"16:58
"git pull" is just asking for trouble, as it will attempt to merge when it feels it needs to16:59
cYmen um..oookay16:59
sh1mmer left16:59
kpreid_ joined16:59
wolog left16:59
khaase joined17:00
shruggar that is "git fetch your-remote-name", followed by "git reset --hard refs/remotes/your-remote-name/your-branch-name"17:00
cYmen I was asking earlier but nobody responded: Would it be ok to just push to the repository in question and do a "git reset --hard" in the post-receive?17:00
crab howto17:00
urk17:00
shruggar cYmen: not exactly, but yes17:00
krawek joined17:01
wereHamster cYmen: google 'git website howto'17:01
saccade joined17:01
v0n joined17:01
cYmen wereHamster: :)17:03
slonopotamus left17:04
shruggar left17:04
pklingem left17:05
flazz left17:06
cYmen hm..I tried git fetch and git reset --hard without the names but it didn't work. What exactly is the difference here when I supply remote-name and branch-name?17:06
Zephyrus left17:07
ShooterMG joined17:07
Ilari cYmen: 'git reset --hard' is the same as 'git reset --hard HEAD'.17:07
cYmen but shouldn't that work after a fetch?17:08
flazz joined17:08
Ilari cYmen: Fetch does not change HEAD17:09
flazz left17:09
flazz joined17:09
bluenovember left17:09
marshall left17:09
flazz left17:09
flazz joined17:09
bentob0x joined17:09
WALoeIII joined17:10
mw left17:10
eletuchy left17:11
cYmen *sigh*17:11
brizly joined17:13
jay-mccarthy how do i clone a particular commit?17:13
cYmen I need to read something. I have used git a little but haven't understood the underlying concepts. Any suggestions?17:13
jay-mccarthy i find http://eagain.net/articles/git-for-computer-scientists/ useful17:13
rvsjoen http://git-scm.com/documentation17:13
crab cymen: http://www.newartisans.com/2008/04/git-from-the-bottom-up.html17:14
vu3rdd left17:14
christophsturm left17:14
cYmen Thanks for the suggestions.17:14
christophsturm joined17:14
fcouryfcoury|away17:16
sh1mmer joined17:17
curtana left17:18
xperience joined17:18
christophsturm left17:19
petercoulton joined17:19
LRN joined17:22
sh1mmer left17:23
kipras joined17:24
steffkes left17:25
camonz left17:26
AAABeef joined17:27
jaysern joined17:28
sh1mmer joined17:28
aep joined17:28
airborn joined17:29
aep can i push some changes from a repo, to a completely other repo, which does not share the same commit base, but the same code?17:29
xperience left17:29
wolog joined17:29
wereHamster sure17:30
ixti left17:31
aep well, got a hint for me how?17:31
masak left17:32
wereHamster git push <theotherrepourl> <whateverbranchyouwanttopushthere>17:32
ixti joined17:33
LRN left17:33
aep uh well that fails with ! [rejected] master -> master (non-fast-forward)17:33
LRN joined17:33
aep which i guess is because its not the same base17:34
wereHamster aep: faq non-ff17:34
Gitbot aep: Your push would lose changes on the remote. See https://git.wiki.kernel.org/index.php/GitFaq#non-ff17:34
aep yeah, i know, since its not the same base >_<17:34
tatsuya left17:34
wereHamster so push the branch to a different ref on the other side17:35
kpreid_ left17:35
aep there is no ref that has the same base17:35
wereHamster git does't care17:35
aep they're untirely unrelated repos17:35
hm17:35
[Po]lentino__ joined17:35
wereHamster git push <theotherrepourl> master:anothermaster17:35
aep maybe i'm doing that test wrong then. i have two repos a and b. in a there is a file a and in b there is a file b. each commited. now i want to push the change that added b to b, to the repo a17:36
[Po]lentino_ left17:36
aep err let me pastebin that.17:36
wereHamster cd a; git push ../b master:masterfroma; cd ../b; git merge masterfroma17:36
spearce joined17:37
aep interesting17:38
now it makes sense, thanks alot wereHamster17:39
aheinecke joined17:39
dmg joined17:39
sixteneighty joined17:40
webchick joined17:41
cxreg hrm17:42
commands that take a pathspec, you can't negate that typically, right?17:42
like you can't say log for all directories but this one17:42
Alagar left17:43
nevyn^ left17:44
eletuchy joined17:45
LRN left17:46
pkahle joined17:46
cxreg hrm: https://kerneltrap.org/mailarchive/git/2008/10/17/3701944/thread17:47
DrNick POSIX globs don't have a negation, so, no17:47
cxreg shrug17:48
you could say --invert-path or something17:48
are you certain that git paths are even posix globs?17:48
LRN joined17:48
DrNick either glob() or fnmatch(), iirc17:48
Axius joined17:49
psoo joined17:51
jrmuizel left17:52
magn3ts left17:53
pklingem joined17:54
jrmuizel joined17:54
tremby joined17:56
tremby what's the easiest way to reverse a commit (which has gone to the remote already, it was faulty)? there have been other commits afterwards which should stay.17:56
tango_ tremby: git revert17:56
doener git revert $commit17:56
tremby that does just the one?17:57
oh nice. i always assumed that went back to that point in time, ie the later commits disappeared too17:57
cxreg no, that's reset17:57
Shyde joined17:57
tremby of course. that is indeed what i was thinking of.17:57
flazz left17:58
morelli joined17:58
flazz joined17:59
ajpiajpiano17:59
flazz left17:59
flazz joined17:59
marshall joined17:59
warlock_mza joined18:00
zoniq left18:02
simplecoder joined18:02
peritus- left18:03
Axius left18:03
jonshea left18:03
macek joined18:03
mefesto joined18:03
kpreid_ joined18:04
simplecoder left18:05
disappearedng_ left18:06
disappearedng left18:06
jonshea joined18:06
gnufied joined18:07
GarethAdams|Work left18:07
rseifert left18:08
Heimidal joined18:08
Heimidal left18:08
Heimidal joined18:08
bx2 left18:09
fisch_ joined18:10
enjo451 joined18:12
marshall left18:12
enjo451 What is the proper way to create a remote branch at a specific tag?18:12
morelli hi is anybody up and familiar with gitolite?18:12
camonz joined18:13
tildeequals joined18:14
Belna_ left18:14
morelli enjo451 what do you mean by "proper", one way git checkout -b <br_name> tag; git push origin br_name18:15
adiabatic joined18:15
bx2 joined18:15
bx2 left18:15
smuf left18:16
bremner morelli: hard to know what "familar" means to you. Try asking...18:16
enjo451 thanks morelli:)18:17
morelli Use of uninitialized value $ENV{"GL_RC"} in do "file" at hooks/update line 36.18:17
jceb joined18:17
morelli when pushing18:17
spearce enjo451: another way is git push origin tag^0:refs/heads/br_name18:17
the ^0 and refs/heads/ bits are really important18:18
bremner morelli: most gitolite issues are ssh issues in disguise. What happens if you run "ssh git@gitolite-host"18:18
morelli i logon18:19
bremner that is not supposed to happen :)18:19
adiabatic Newbie question. A buddy of mine forked my repo on github and made some changes over multiple pushes. What would be the best way to get a diff of what he's done? git-pull into another directory on disk and then git diff, or...?18:19
bremner morelli: did you try the SSH troubleshooting hints in the gitolite docs?18:19
rseifert joined18:20
rseifert left18:20
tremby left18:20
wereHamster adiabatic: why (a diff)? Why not just merge his changes?18:20
morelli but i could clone the repo so why problem with push ?18:20
i will look now18:20
elmob joined18:21
kar8nga joined18:21
disappearedng joined18:21
disappearedng_ joined18:21
webchick left18:21
adiabatic wereHamster: well, I'd like to look at what he changed and try and figure out what he did before his stuff goes into my repo18:21
but that shouldn't be much of a problem as long as I don't commit anything, right?18:22
bremner morelli: I suspect your clone bypassed gitolite. Did you give "repositories" as part of the path?18:22
wereHamster adiabatic: fetch his changes, then inspect them with git log -p for example18:23
enjo451 Is there a nice way to figure out the commit at which a particular file was deleted?18:23
morelli yes git@gitserver:repositories/testing.git18:23
bremner yeah, that is bypassing gitolite. You are using the admin key I guess18:24
webchick joined18:24
wereHamster enjo451: git log -- <file which was deleted>18:25
morelli hmm frankly speaking I really don't know witch one ;)18:25
Ilari morelli: Try 'ssh gitolite'.18:25
brez- joined18:26
segher joined18:26
Ilari morelli: IIRC, the hostname really was "gitolite".18:26
aspotashev|eeepc joined18:26
morelli gitolite said hello18:27
and gave me my permisions18:27
Ilari morelli: 'git clone gitolite:<repository>'.18:27
tgunr joined18:27
Ilari morelli: E.g. 'git clone gitolite:testing'.18:27
corni joined18:28
morelli that way have cloned the admin repo but wanted to test out way for the user18:28
Ilari morelli: Gitolite identifies the user by SSH key.18:29
enjo451 left18:29
meanburrito920 joined18:29
JayM joined18:29
Ilari morelli: So to change what user it identifies as, you need to change what key SSH sends.18:29
d0ugal left18:30
morelli in .ssh/config?18:30
Nihathrael left18:31
Ilari morelli: Easiest way is to create new alias in .ssh/config18:31
ph^ left18:31
tvw joined18:31
Alagar joined18:31
ph^ joined18:31
khaase left18:33
adiabatic wereHamster: thanks18:34
eletuchy left18:35
tgunr I have a repo here with an anomomly i can't figure out, one of the folders does not show up if i use `git ls-files' but if I cd to the folder and use `git status .' the status indicates it is up to date. Why doesn;t it show up in the ls-files. Also, I went to an empty folder and cloned the repo and the folder is missing in the clone. The folder is not being ignored and a `git add missingfolder' doesn't do anything.18:35
eletuchy joined18:35
tgunr er anomaly18:36
d0ugal joined18:36
kar8nga left18:36
justin-george joined18:37
tgunr the folder in question does have a wierd path name: /Volumes/leopard/Projects/XMacVPL/( Xcode Projects )/( xcbuild_ffi )18:37
d0ugal left18:37
davr You're on a mac, so I can forgive spaces in a path, but parens?18:38
adiabatic Mac or no, "(blah blah blah)" is an odd path name18:38
tgunr don't ask, i can't control that part18:39
khmarbaise joined18:39
engla there shouldn't be any restriction on pathnames18:39
tgunr at least yet, after I get it into VCS with git I can change it18:39
urkud joined18:39
engla it's just a string of bytes to a unix tool, right?18:39
airborn left18:39
tgunr there is another similar folder which did get added ok :/Volumes/leopard/Projects/XMacVPL/( Xcode Projects )/( xcbuild )18:40
davr You'd think...but I've seen apps that break even with just spaces in the paths18:40
tgunr eng: correct if escaped properly it should not matter18:40
Shyde left18:41
adiabatic Apache won't build properly if it's in ~/Desktop/New Stuff, but it will in ~/Desktop/Incoming.18:41
tgunr question right now is why is the folder not in the repo and how do I get it in?18:41
rseifert joined18:41
davr yeah, linux people have trouble with spaces sometimes. I see it occasionally with linux apps ported to windows as well. Windows apps generally always work with spaces, since both $HOME and default program install dirs have spaces in them. Maybe MS did that on purpose to force devs to make it work18:42
Ilari tgunr: 'git status .' is what 'git commit .' would do.18:42
DrNick is it empty?18:42
stamina left18:42
Ilari tgunr: And yes, you can't have tracked empty directories.18:42
tgunr `git status .` shows on branch master, nothing to commit18:43
not empty18:43
froschi left18:43
khaase joined18:43
SimManiac joined18:44
SimManiac hi18:45
Tali joined18:45
morelli Ilari now server asks me for the password and i should know what is wrong, but i don't18:46
Tali left18:46
Ilari morelli: You haven't added that key to keydir (and committed & pushed)?18:46
morelli it is added & pushed but , on push there was a warning that the name is not in config but with testing repo and @all i ignored it18:47
Ilari morelli: login to gitolite account and check if the key is in .ssh/authorized_keys?18:48
tgunr found the problem, tried to rename the folder with git and discovered it contains folders which are empty, anomaly explained :)18:49
rseifert left18:49
spearcegit|spearce18:49
morelli yes it is18:50
andreaa joined18:50
airborn joined18:51
Gitzilla joined18:51
rseifert joined18:52
schacon joined18:53
dmg left18:53
morelli i'm an idiot, the name in ssh/config had ".pub" at the end ;)18:53
dmg joined18:53
mithrothousandparsec|m18:54
kpreid_ left18:54
morelli but the same error when pushing Use of uninitialized value $ENV{"GL_RC"} in do "file" at hooks/update line 36.18:55
hyperair left18:55
frakturfreak_ joined18:55
webchick left18:55
arian1 joined18:58
frakturfreak left18:59
arian1 left19:00
slonopotamus joined19:01
SqueeDee joined19:02
d0ugal joined19:03
sgh joined19:03
lessthanzero left19:03
kpreid_ joined19:03
jay-mccarthy how do i get the commit messages for commits between X and Y, not including X?19:04
d0ugal left19:05
wereHamster just the commit message?19:05
jay-mccarthy i'm really curious about the range syntax19:05
"X Y" includes X19:05
khaase left19:05
wereHamster X Y includes everything reachable from X or Y19:05
jay-mccarthy so i don't understand then19:06
TheUni joined19:06
SqueeDee Hey all. We use github as our 'origin' or forced centralised repository, and nearly any time i make a feature branch i want it on there immediately so that I can tell our CI tool to track, build and test the feature branch. Is there something more elegant than: "git branch <branch name>; git checkout <branchname>; git push origin <branchname>; git checkout <mainline>; git branch -D <branchname>; git checkout -t origin/<branchname>" ?19:06
wereHamster don't understand what?19:06
jay-mccarthy how do use git show to do what i wan19:06
wereHamster jay-mccarthy: git show X; git show Y;19:07
jay-mccarthy that's not right either...19:07
I know that commit X happened, and there may have been A, B, C, etc, then I know that Z happened19:08
lll joined19:08
peritus- joined19:08
jay-mccarthy is there a way to get the messages for A, B, C, and Z, only knowing X and Z?19:08
SqueeDee isnt that what git log does for you?19:08
wereHamster how are X, A, B, C and Z related?19:09
SqueeDee < total newb so tell me to shut up if i make things worse.19:09
jay-mccarthy X was the head at the last push, Z is the head at the current push19:09
A B and C were part of the push that Z was the head of19:09
basically i want to find all the commit messages that were part of a push19:09
wereHamster git log X..Z ?19:09
corni left19:10
khelll left19:10
rolfb joined19:10
jay-mccarthy that looks right19:11
wereHamster SqueeDee: git --version19:11
SqueeDee you can use relative magic too cant you? like +1 etc?19:11
wereHamster +1 where?19:11
SqueeDee sec, I'll research before i make bold claims19:11
pkahle left19:11
jay-mccarthy is there an option for more parseable output?19:12
elmob left19:12
wereHamster jay-mccarthy: man git-log --format=...19:12
Gitbot jay-mccarthy: the git-log manpage can be found at http://git.or.cz/man/git-log19:12
SqueeDee oh sorry it was ^ as an exclusion, thats cool.19:12
Textmode joined19:12
SqueeDee done by x..z anyway19:12
sylr left19:13
Textmode Morning all19:13
maddog_ joined19:13
maddog_ hiho19:13
SqueeDee Morning19:13
wereHamster SqueeDee: your git version pls19:14
SqueeDee a moment19:14
1.6.3.319:14
maddog_ I have currently a state on a branch on my workstation which is same sommits behind the status on the server. Is it possible to force my version to be the newest and pushing that to the server?19:14
wereHamster SqueeDee: too bad for you, 1.7 has push --set-upstream, which would shorten your commands to: git checkout -b <branchname>; git push --set-upstream origin <branchname>19:15
cbrinke1 joined19:15
SqueeDee im happy to update19:15
cbrinke1 I have accidentally merged two repos together, what is the easiest way to remove one of the repos?19:16
wereHamster maddog_: so you want to effectively throw away the additional commits on the server?19:16
fgiraldeau joined19:16
wereHamster cbrinke1: how did you merge them?19:16
camonz left19:16
mefesto left19:17
mefesto joined19:17
cbrinke1 history: I had a .git repo for my .dotfiles, I also had a ~/projects/.git repo as well. Apparently somehow the projects repo imported all of the dot files19:17
SqueeDee wereHamster that looks sooo much better. and now i'm aware of at least one cause of confusion in the office.19:17
morelli Ilari here http://gist.github.com/374278 how it looks19:17
aspotashev|eeepc left19:17
SqueeDee nearly everyone is looking at the kernel.org docs and I'm sure no-one is using 1.719:17
aspotashev|eeepc joined19:17
wereHamster cbrinke1: git rm --cached .dotfiles; git commit ?19:18
Ilari morelli: You are using wrong type of key (admin key, not gitolite user key).19:18
cbrinke1 The strange bit is that it also imported the whole history from the other repo.19:19
rgr joined19:19
cbrinke1 wereHamster: will that eliminate the dotfiles history from the repo?19:19
wereHamster cbrinke1: where is the .git for the dotfiles? Inside the dotfiles directory?19:19
cbrinke1 ~/.git = dotfiles repo ; ~/project/.git = project repo19:20
wereHamster and the actual dotfiles are where?19:20
cbrinke1 ~/{.vimrc,.bashrc} (etc)19:21
I was unaware of the dangers of having a nested git repo19:21
wereHamster cbrinke1: in that setup, I would understand if you somehow managed to add the project repo as a submodule of the dotfiles repo..19:21
pklingem left19:22
wereHamster eg. cd ~/; git add project; git commit;19:22
cbrinke1 thats the strange bit, the project repo has ended up with the dotfiles history.19:22
I am not sure how this happened however, and the log is essentially worthless as it shows both repos worth of history19:23
wereHamster and where in the tree of the project repo are the dotfiles?19:23
cbrinke1 ~/project/{.bashrc,.vimrc}19:23
morelli Ilari not here http://gist.github.com/374285 admin.pub =/= id_rsa.pub and both are in keydir in gitolite-admin repo19:23
wereHamster cbrinke1: gitk --all might help you understand what happened19:24
cbrinke1 does gitk have a "sort by timeline" ?19:24
adiabatic I just tagged a release with `git tag -a 1.70`, but when I tried to push to github, it said that everything's up-to-date…and github doesn't have my tag. What do I need to do to get the tag published?19:24
adiabatic waves to Ilari19:25
pklingem joined19:25
morelli git push origin tag_name19:25
Plouj joined19:25
Plouj hi19:25
pklingem left19:25
Plouj do I have to do something special when rebasing with submodules?19:25
wereHamster hi plouj :)19:25
justin-george left19:26
Plouj for some reason git keeps saying a submodule dir is modified even after I do git checkout <submodule-dir> on it19:26
hi wereHamster19:26
Ilari morelli: id_rsa is presumably your admin key. You can't use that key as user key (create new keypair)?19:26
adiabatic morelli: thanks. Why wouldn't tags go out with the normal commits, though?19:26
pklingem joined19:27
simplecoder joined19:28
webus joined19:28
morelli no id_rsa is not the admin key19:30
erikvold joined19:31
icefox2 joined19:31
morelli adiabatic because that how git works, you can push all tgs by git push origin --tags or one ref19:31
cbrinke1 left19:31
morelli like ref name tag or branch19:32
Nemurenai joined19:32
jaysern left19:32
navetz joined19:32
Plouj ah, I forgot git submodules update, I think19:33
navetz hey guys I am new to git and need some help, I want to download the tooltip widget from jqueryui's github branch. I don't really know hwo to do this.19:33
morelli by default from what i know git push origin pushes only master btw19:33
[Po]lentino__ left19:33
navetz is it some kind of submodule?19:34
icefox2icefox19:34
Ilari morelli: What key is the default key SSH sends then? You have .ssh/identity or .ssh/id_dsa?19:36
webchick joined19:36
hugojosefson_ joined19:37
joeconyers joined19:37
morelli Ilari from what i know default is id_rsa and i don't have identity or id_dsa19:37
agib joined19:37
ShaunR222 joined19:38
morelli maybe msysgit is doing something wrong ?19:38
Ilari morelli: Then id_rsa is key that has shell access to gitolite account. You can not use that key as gitolite user key.19:38
morelli: At least not over SSH.19:38
ShaunR222 i'm very new to git and using a versioning system like this. I want to use it on a small code project i have. I already did a git init; git add .; git commit in my project dir. I'm curious how creating versions works or is suppose to work. Should i use tags for each version/release?19:39
morelli Ilari yes it has, and why not?19:39
hugojosefson_hugojosefson19:39
Ilari ShaunR222: Each release should probably be tagged. Revisions are created by commit command.19:39
morelli: Because that key bypasses gitolite.19:40
malte_ joined19:40
morelli aha19:40
ShaunR222 ok, for example git version 1.7.0.5, thats a tag?19:40
ereslibre left19:40
adaro_ joined19:41
morelli so new key for the tests i must generate :)19:41
divVerent Is there a nice way to keep unversioned stuff as part of a git repo so it gets pulled?19:41
Ilari ShaunR222: Yes. And there are 27 commits in 1.7.0.5 that aren't in 1.7.0.4...19:41
divVerent (namely: scripts to use the git repo)19:41
currently, I simply put that script versioned in the repo19:41
cbrinke1 joined19:41
divVerent but the problem is, when the script is updated, and people work in branches, they still have the old version19:42
ShaunR222 when commiting it opens vi and shows files i modified/added and wants me to comment. Should i just comment at the top or should i be commenting about each modified/newfile?19:42
webchick left19:42
wereHamster at the top19:42
hugojosefson left19:42
PerlJam ShaunR222: it's your commit message, put what's useful to you.19:42
divVerent one idea for this might be having "two workdir checkouts in one dir", if git supports that19:42
cbrinke1 wereHamster: ok, I found where I made the mistake, is there anyway to undo a merge operation?19:42
wereHamster ShaunR222: if you really thin you should comment on each file individually, you should make individual commits19:42
divVerent so the script always comes from master19:42
Ilari ShaunR222: One (short) subject line describing what was changed, blank line and then longer description giving why the change was made.19:43
adaro_ is it possible to specify svn locations when using git svn init , i basically want to get a git repo containing two svn modules that i can sync with a single command19:43
ereslibre joined19:43
ereslibre left19:43
ereslibre joined19:43
wereHamster cbrinke1: reset --hard <commitbeforethemerge>, which is HEAD@{1} if you just did the merge and nothing else19:43
ShaunR222 ok i see, so after each mod i should commit and then comment about that modification.. rather than do a bunch of changes and then commit.19:43
wereHamster yes19:43
divVerent another idea for this would be "virus-like": on every startup, the script gets the most current version of itself and places it in .git/, then runs that :P19:43
Ilari ShaunR222: The rule is to make each logical change as its own commit.19:43
PerlJam ShaunR222: After each logically complete modification.19:43
adaro_ *multiple svn locations19:43
missed a word there :)19:44
d0k left19:44
ehabkost joined19:44
icicicici joined19:45
hugojosefson joined19:45
icicicici I've created a new repo (blank directory), then done an svn clone into the repo, followed by a git update-server-info, and I find that I can't clone my repo over http19:46
cbrinke1 wereHamster: that did it, thanks for the pointers19:46
ShaunR222 i have a main, we'll say stable version and then a beta version normally... With git i assume stable would be the master branch and beta would be a beta branch?19:46
icicicici I have other repos in the folder I can clone.. it appears that git is looking for "info" which in this repo is in .git/info19:46
hugojosefsonhugojk19:46
icicicici can anyone help me out?19:46
ShaunR222ShaunR19:46
hugojkhugoj19:46
Ilari ShaunR: Yes.19:46
ShaunR left19:46
ShaunR joined19:46
hugojhugoj_19:46
hugoj_hugojoseson19:46
hugojosesonhugojosedson19:46
hyperair joined19:47
sitaram morelli: when you ran easy-install, did you get a message at the end that looked like this: http://pastebin.com/Xegp94jh19:47
Ilari icicicici: Repos to be cloned over HTTP should be bare. And why are you using HTTP anyway (especially dumb HTTP)?19:47
ShaunR ok, thanks for the info!19:47
hugojosedsonhugojosefson19:47
icicicici Ilari: What ought I use instead of http? I rather like http, but I'm open19:47
bx2 joined19:48
sitaram updates doc/6 yet again...19:48
Ilari icicicici: The primary protocol for anonymous cloning is git:// (and if you use HTTP, make sure it is capable of smart HTTP).19:48
icicicici Ilari: it's not anonymous I want. I do http with apache auth19:48
morelli Ilari yes exactly the same19:48
Ilari icicicici: Then ssh.19:48
icicicici ugg.. I'd rather not do ssh (for many reasons)19:49
g0bl1n left19:49
Nemurenai left19:49
icicicici Ilari: so I can't clone an svn repo into an empty git tree (techinically I did an init to svn)19:49
then share over http?19:49
pheaver joined19:49
onigiri_ joined19:50
pheaver left19:50
Ilari icicicici: Create repo in location where whatever is serving it finds it and push it there.19:50
icicicici: And that repo will be bare.19:50
morelli sitaram yes partly exactly the same19:51
icicicici Ilari: so I'll create a repo on my "server"19:51
and that one's init-ed bare19:51
peritus- left19:51
icicicici Ilari: then do a git fetch from svn elsewhere, and push to the "server"?19:51
Ilari icicicici: Why not ssh? And as said, make sure smart HTTP works if you serve it over HTTP.19:52
icicicici: And yes, you need bare repo on server that gets served to clients.19:52
divVerent 21:48:45 icicicici | Ilari: it's not anonymous I want. I do http with apache auth19:52
icicicici Ilari: yup on the smart http side. as for ssh, I don't relish the idea of account mgmt with ssh19:52
divVerent problem is - IF you want to use that, you need SSL too for security19:53
and then you are probably better off just using SSH instead19:53
icicicici divVerent: I'm not worried about the SSL side <yet>19:53
divVerent icicicici: use gitolite then19:53
icicicici but I will be19:53
SqueeDee wereHamster thankyou for the advice earlier.19:53
divVerent that goes through ssh, but uses ONE unix account for all19:53
and does not give them shell access19:53
sitaram morelli: so please do as it says. For *you*, the url *must* be "gitolite:reponame". Your users (whose keys you add into the config, and do not have a direct shell key) can use the type of URL you're using19:53
icicicici divVerent: ooh shiny19:53
divVerent think of sshd with forced commands as "just another inetd" ;)19:53
cbrinke1 left19:53
divVerent icicicici: the big disadvantage of gitolite/ssh is that it ONLY allows public key login19:54
and NOT password login19:54
icicicici divVerent: ah, then I can't do that either19:54
divVerent but one can get used to that :P19:54
why not?19:54
icicicici it's okay for me, but not my user set19:54
hugojosefson left19:54
divVerent make a script that creates a ssh key with a passphrase, silently sends the key to you, and they won't know the difference19:54
:P19:54
SqueeDee You can educate people on keys. I've got designers, operations, management, all using keys, across platforms.19:55
warlock_mza left19:55
icicicici lolz.. yeah, I'd rather do the http thing for now19:55
divVerent SqueeDee: oh, the M-word.19:55
SqueeDee it was worth the effort.19:55
divVerent I see :P19:55
sitaram morelli: I just added a new section at the top of doc/6; please see "the most common problems that an admin will see" section in http://github.com/sitaramc/gitolite/blob/pu/doc/6-ssh-troubleshooting.mkd19:55
icicicici SqueeDee: yeah, I've got that + different pain19:55
it's awesome19:55
divVerent sitaram: BTW... maybe there SHOULD be a way to use gitolite with password ;)19:55
idea: one shared ssh key, and it prompts for username/password on network operation19:56
I wonder if gitolite would actually be ABLE to do such a prompt19:56
stderr isn't a problem, but accessing the terminal for input might be19:56
sitaram divVerent: sure, when Ilari's git-daemon2 gets in, and SRP access can happen :) [I think...]19:56
Ilari icicicici: Smart HTTP has serverside compat mode for old clients (fetch only, but you DO NOT want to push over dumb HTTP).19:56
divVerent sitaram: oh, an alternate way :P19:56
sure, why not19:56
so basically, git:// will learn auth?19:57
and then can be used for ssh + userpass too?19:57
icicicici Ilari: why no? I'm somewhat new to this.. and do @ home19:57
Ilari divVerent: Yes, git-daemon2 supports passwords via TLS-SRP.19:57
divVerent oh, already TLS?19:57
even better19:57
doesn't that mean it'll be able to REPLACE ssh?19:57
but I'd still want gitolite support in that ;)19:57
sitaram divVerent: Ilari is the expert on that (and there is a small side-branch of gitolite called "pu-ssh-plus" to cater to that, but changes are minor; all the action is on his side)19:57
stringo0 joined19:57
sitaram divVerent: yes he uses gitolite, that special branch19:57
divVerent but sure, sounds good19:57
eletuchy left19:58
peritus- joined19:58
divVerent sitaram: but that still will require the ssh:// protocol, right?19:58
sitaram divVerent: I always like to say "this feature exists and currently has a grand total of 1 user" :) But honestly, Ilari can explain far better than I can; I'm sure to mess it up!19:58
divVerent well... currently the only reason why gitolite doesn't work with u/p auth, is that ssh only allows forced commands on pubkeys19:58
Tobarja_n810 joined19:58
divVerent but not on user accounts19:58
otherwise, one could create multiple names for the same UID in /etc/passwd, give them different passwords, and gitolite could figure out the rest ;)19:59
sitaram: also... ONCE sshd gets such a feature... it wouldn't need the smallest change to gitolite to support it ;)20:00
sitaram divVerent: you can put a ForceCommand in a Match block in /etc/ssh/sshd_config but (a) that is too intrusive (b) it completely precludes direct shell access; you can only du "su - git" after that for CLI, (c) still cannot distinguish me from you20:00
wereHamster but ssh allows forcedcommands for all acconuts20:00
divVerent sitaram: oh... great20:00
but... where is the problem then?20:00
I create 10 alternate usernames in /etc/password for the gitolite UID20:01
morelli sitaram i have added fresh key to keydir and "R access for repositories/testing DENIED to me" but i assumed that @all means all keys in keydir even when added name of the new key this is this *MUST* use thing?20:01
divVerent and then use a Match block to ForceCommand them the gl-auth-command command20:01
shouldn't that do?20:01
the trick is having multiple user accounts of the same UID20:01
maks_ joined20:01
maks_ ~/src/linux-2.6$ git name-rev 15121c18a22ae483279f76dc9e554334b800d0f720:01
divVerent like BSD people commonly do with the username "toor" at UID 020:01
maks_ 15121c18a22ae483279f76dc9e554334b800d0f7 undefined20:01
simplecoder left20:01
sitaram divVerent: maybe it will; and if you try it and write it up it will go into contrib/, but I will *not* be doing anything that requires root :)20:02
maks_ where shall I bug report this?20:02
divVerent sitaram: no, no20:02
not YOU would do that20:02
simplecoder joined20:02
divVerent this is nothing that can, or should, be automated20:02
only documented that it CAN be done (if it works)20:02
adaro_ if you have a git repo that contains lots of folders is it possible to take one folder from that repo, fork it and still merge changes from the main repo back in20:02
simplecoder left20:02
morelli sorry20:02
warlock_mza joined20:02
hugojosefson joined20:02
morelli it now works as expected20:03
sitaram divVerent: excellent idea... sadly it is past 01:30 here and I am probably too sleepy to try it :) I'll try it tomorrow or if you try it let me know20:03
maks_ left20:03
sitaram morelli: it *always* works as expected! If it doesn't seem to, change expectations ;-)20:03
hugojosefson left20:03
divVerent sitaram: I'll try it right now20:03
I am not yet convinced that it actually will work20:04
as the Match block might instead match against the first username for the UID :P20:04
agibagib|away20:04
divVerent of course, I really wouldn't recommend such a setup20:04
Ilari divVerent: Yeah, the only reason it wouldn't work would be sshd.20:04
divVerent as it will give a security hole quite fast20:04
one would have to ALWAYS make sure to FIRST add the account to sshd_config, restart sshd, and only then actually create the user20:05
sitaram divVerent: you need one matchblock for each user though20:05
divVerent and opposite order for deleting20:05
exactly20:05
and THAT is a problem :P20:05
sitaram big one!20:05
divVerent once you forget the order, evil user may gain shell access20:05
icicicici left20:05
divVerent actually... I think you may be able to do it with just one match block20:05
and a wildcard pattern20:05
if there is a way to get the login user name from the environment, that could be used in the gl-auth-command call20:05
checking that too :P20:05
one would name the users git-foo then :P20:06
sitaram divVerent: yeah that can be done; one line change in gitolite if needed20:06
divVerent I prefer not having explicit support for that hack in gitolite ;)20:06
altrux left20:06
divVerent if possible, that is20:06
sitaram divVerent: agreed; I was only saying if you want to test it you can do that20:06
altrux joined20:06
divVerent that really shouldn't be the "usual setup" of gitolite20:06
sitaram divVerent: agreed20:06
khelll joined20:06
divVerent mainly because repeatedly asking the PW is annoying20:06
and pubkeys are SO MUCH better :P20:07
so even if it works and gets documented20:07
maybe the doc for it should NOT be with the usual gitolite doc20:07
sitaram frankly, I've got hardcore Windows folks using git happily, pubkeys and all...20:07
divVerent but also in a contrib dir :P20:07
morelli sitaram yes that is true but this whole _ssh_ is confusing sometimes, and I don't know what to expect ;)20:07
petercoulton left20:07
tg left20:07
sitaram 01:32:07 <sitaram > divVerent: maybe it will; and if you try it and write it up it will go into contrib/, but20:07
webus left20:08
rseifert left20:08
sitaram morelli: that's a nice change for me. Usually people will say "I know all about ssh, it's gitolite that is not working" :) And graaaaadually, slooooowly, come round to realising they don't know ssh as well as they thought they did :)20:08
tg joined20:09
sitaram morelli: http://sitaramc.github.com/0-installing/9-gitolite-basics.html will help; there's an ssh overview section20:09
divVerent sitaram: BTW, a slightly less intrusive way to achieve the same:20:09
make a one-line shell script calling gl-auth-command20:09
and set it as login shell for the extra accounts :P20:09
THAT way BTW is known to work for root vs toor20:09
dabd joined20:09
sitaram divVerent: awesome... and that script can pass on $USER as the argument too... oh man this will work *as is*20:09
divVerent as typically, root and toor have different shells, as the whole POINT is to still have access if the "comfortable" login shell is broken20:10
sitaram slaps head20:10
divVerent still, trying in sshd first :P20:10
(and using $USER of course)20:10
sitaram divVerent: toor? what is that?20:10
divVerent typically a second root20:10
altrux left20:10
divVerent on BSD systems, many set root to have /usr/local/bin/bash as shell20:10
altrux joined20:10
divVerent but bash depends on some libs, and if these break...20:10
they then can still login as "toor", which uses /bin/sh or /bin/tcsh20:10
thiago_home install a static bash20:11
sitaram but they have the same UID?20:11
divVerent thiago_home: sure, POSSIBLE20:11
BrianHV joined20:11
divVerent sitaram: yes20:11
both are 020:11
thiago_home: alternate solution for the same20:11
dabd left20:11
divVerent but BSD users prefer their ports to be managable using portupgrade :P20:11
morelli thanks for help Ilari and sitaram for the tool ;) good bye20:11
Ilari divVerent: As example: http://pastebin.com/0tybNDBm20:11
Wandrewvious joined20:11
pipegeek joined20:11
sitaram yeah that's the part that scares me somewhat though... from an auditability point of view, you'd have to think long and hard about this to be able to say "no, my users cannot get a shell"20:11
dabd joined20:12
dabd left20:12
dabd joined20:12
pipegeek Is there a reason behind gitweb's naming convention for git repositories where every repository directory ends in .git? When setting up a repository server, is this an important convention to follow?20:12
sitaram for example, how does it react to a very quick Ctrl-C as it starts up20:12
divVerent damn... just got the "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED" for ssh localhost20:12
did I now "hack myself"?20:12
sitaram divVerent: I have to go get some sleep; good luck...20:12
morelli left20:12
divVerent sure, will try :P20:12
login shell way probably IS better, once other login ways are provided :P20:13
but then one still needs the Match block to turn off e.g. port forwarding20:13
lhz left20:13
sitaram (all in all, game's not worth the candle...)20:13
good night all...20:13
jay-mccarthy how do i fetch on a bare repo?20:13
divVerent hehe :P20:13
warthog9korg|warthog920:14
jay-mccarthy it says: fatal: 'origin': unable to chdir or not a git archive20:14
zuez joined20:14
Wandrewvious left20:14
thousandparsec|mmithro20:14
zuez how do I check all of the commits that a particular file was changed on?20:14
divVerent sitaram: working example:20:14
Match User git-*20:14
ForceCommand echo "You are $USER"20:15
thiago_home zuez: git log -- filename20:15
zuez thanks thiago20:15
WALoeIII left20:15
divVerent sitaram: I'll write something up ;)20:15
as this POC seems to work20:15
Tobarja_n810 left20:15
Ilari divVerent: Oh, nice. I didn't expect it to work so well. :-)20:15
divVerent already found the first catch20:15
does not work with /bin/true as login shell ;)20:16
even if it is in /etc/shells20:16
peritus- left20:16
divVerent so locking down the account that way fails20:16
mjf joined20:16
divVerent need to go the "shell script as login shell" way instead then20:16
Ilari divVerent: Setting ForceCommand to "/.../gl-auth-command $USER" should do the trick.20:16
divVerent apparently ssh passes the forced command to the login shell20:16
so the login shell can't be a dummy20:16
Ilari divVerent: Yup.20:17
divVerent but with the login shell not a dummy, we get into trouble if a second way to login is provided20:17
fisch_ left20:17
divVerent e.g. *puke* rsh :P20:17
pipegeek Is there any technical reason to name bare repositories something.git, or is it just a convention?20:17
Ilari divVerent: Or telnet. :-)20:17
Nugget telnet is eeeeeeevil!20:17
vinse is there a way to turn off the "Did you mean..." for misspelled commands? dont know about other platforms, but with msys it can cause like a 5 seconds freeze20:17
divVerent is that a bot?20:17
telnet20:17
no :P20:17
but, MORE seriously, X11 login may be allowed (although locally)20:18
zuez thiago_home: it's odd, I did that, but I don't see where that file got modified in the previous commit20:18
linx| joined20:19
mythos left20:19
dmg left20:19
unix_remote left20:20
divVerent sitaram: proof of concept of an actually secure way worked too :P20:21
starting to document it now20:21
pklingem1 joined20:21
Wicked joined20:21
pklingem left20:21
WALoeIII joined20:22
WALoeIII left20:22
Wicked hello all. i just updated git on my freebsd box and i went to restart it and its just hung.....been like close to 5 mins...not really sure where i should check to see whats going on.20:22
thiago_home zuez: explain20:22
ryanakca left20:23
Plouj left20:23
Ilari divVerent: Not a bot, but has some sort of autorespond set.20:23
tmske joined20:24
fgiraldeau left20:24
Ilari divVerent: And once it triggers, it won't trigger again for some time.20:24
cilly left20:24
Zenopus joined20:24
tmske Hi, how can I checkout a file from svn (I'm using git-svn but one file got merged completly wrong so I want to fetch that from svn)20:24
Ilari Wicked: What is hung?20:24
novas0x2a joined20:25
ryanakca joined20:25
webchick joined20:25
Wicked the rc.d start up script its using seems like its not forking git_daemon into the background or something. i issued a "/usr/local/etc/rc.d/git_daemon start" and normally it would start the daemon then in the background..now its not20:26
the console just says: Starting git_daemon.20:26
Ilari Wicked: What version you upgraded from and to what version?20:26
webchick left20:27
Wicked Upgrade of git-1.7.0.4 to git-1.7.0.520:27
ereslibre left20:27
korg|warthog9warthog920:28
Wicked if i open a new window in screen and do a ps i can see git_daemon is running.20:28
peritus- joined20:29
Ilari Wicked: The real git daemon process is git-daemon, not git_daemon20:29
Wicked yes. thats just a rc script to start git20:30
hyperair left20:30
novas0x2a left20:30
Wicked well git-daemon20:30
eletuchy joined20:30
CSSnub joined20:30
Ilari Wicked: What is parent process ID of git-daemon? It should be 1 if it became daemon...20:31
Wicked im wondering if the freebsd guys changed something in the /usr/local/etc/rc.d/git_daemon script that doesnt fork it into the bg20:31
WALoeIII joined20:31
pkahle joined20:31
WALoeIII left20:31
agib|away left20:32
mythos joined20:32
CSSnub Is it necessary for me to execute the commands 'exec ssh-agent bash' and 'ssh-add privatekeyfile' in order to get access to an unfuddle repository? I eventually did get access and I'm now trying to write a tutorial for the other devs but I'm not sure if that helped me solve my problem - I'm pretty sure setting up ~/.ssh/config was the bit that solved it.20:32
I guess I'm not exactly sure what adding something to ssh-agent even does20:32
Ilari CSSnub: This is pretty standard SSH. Without ssh-agent, you just have to type passphrases a lot.20:34
altogether joined20:34
kar8nga joined20:34
Ilari CSSnub: If key has been added to ssh-agent, there won't be passphrase prompt even if it is encrypted.20:34
kblin joined20:34
kblin hi folks20:34
CSSnub Oh OK - so that would be helpful to include in said tutorial I suppose. :) Thank you. Does it pose any increased security risk?20:35
Ilari CSSnub: Well, the ssh-agent exits (and destroys the unencrypted copies of keys) with the session.20:35
Adaptee left20:36
CSSnub So everytime I need to update my local version of the repository I will need to execute those commands again?20:36
kblin left20:37
Ilari CSSnub: No, every time you close the shell that has ssh-agent active.20:37
lanthan_ joined20:37
parasti left20:38
Ilari CSSnub: If you don't do that, you just get passphrase prompt (that can get annoying).20:38
engla seahorse can be a good ssh agent (Gnome desktop)20:38
jstemmer left20:39
divVerent sitaram: http://rm.endoftheinternet.org/~nexuiz/0001-first-draft-of-gl-auth-loginshell-and-documentation.patch20:39
have to go now20:39
will get back to it later20:39
peritus- left20:40
DavidKlein left20:40
lanthan left20:41
shennyg left20:41
shennyg joined20:42
malte_ left20:43
justin-george joined20:43
unix_remote joined20:44
brizly left20:44
ntoll left20:47
shennyg left20:47
nairb774 joined20:47
justin-george left20:47
slonopotamus left20:48
shennyg joined20:49
slonopotamus joined20:50
shennyg left20:50
git|spearce left20:51
jceb left20:51
agile joined20:52
pheaver joined20:52
jlehmann joined20:53
jay-mccarthy what is the difference between %s and %b in git log/show?20:53
eek812 joined20:54
justin-george joined20:54
madewokherd joined20:55
onigiri_ left20:55
parasti joined20:56
slonopotamus left20:57
Ilari jay-mccarthy: %s is subject line, %b is body (everything except subject line).20:57
Twisted_Mentat joined20:57
jay-mccarthy when i run "git commit" i don't write a "subject line"20:58
is %s the first line of what i type and %b everything else?20:58
Wicked indeed the freebsd guys did change that script...and they did forget to fork it into the background20:58
doener jay-mccarthy: the first paragraph20:58
Garen_ joined20:59
jay-mccarthy so if i want everything, is that %s%b or %s%n%b or %s%+b?20:59
Ilari jay-mccarthy: IIRC, %B (but that's pretty new)20:59
jay-mccarthy my git doesn't support that21:00
is there no other way?21:00
Garen left21:00
jmcantrell joined21:00
novas0x2a joined21:00
lucsky left21:00
kpreid_ left21:01
justin-george left21:02
shanker joined21:03
kar8nga left21:04
Brodde left21:04
archis joined21:05
icwiener_ joined21:05
archis left21:06
pheaver left21:06
ixti left21:07
auslander left21:07
sgh left21:07
joeconyers left21:08
icwiener left21:08
shanker left21:09
sgh joined21:09
Pupeno joined21:11
Dieterbe joined21:11
Dieterbe how does it come that git can apply diffs on changed source code? in my experience, using the 'patch' tool, it fails a lot if even simple things have changed in the target file21:13
but git seems to be able to apply patches just fine, even if the target file has been changed21:13
crab it just tries harder than patch(1) does.21:15
engla with revision control you can do things like three-way merge, even when applying patches21:17
and that's a big upgrade from two-way "merge"21:17
Dieterbe so basically git-apply is like patch on steroids21:18
pheaver joined21:18
engla absolutely. For format-patch patches you use 'git am' however21:18
adaro_ left21:19
adam[pac] joined21:19
Dieterbe indeed. i use git-am to apply patches people send me by mail. and it amazes me how they always apply, even if the patches were written against older code and such21:20
justin-george joined21:21
engla I like to say that git's patch management is how it's supposed to be. Atomic by default, very smart merging21:21
macek left21:21
Cesario joined21:21
gebi left21:21
mefesto left21:22
Garen joined21:23
pklingem1 left21:23
nairb774 left21:24
rado1 joined21:24
Garen_ left21:25
gbacon joined21:25
stringo0 left21:26
webchick joined21:26
ereslibre joined21:27
ereslibre left21:27
ereslibre joined21:27
icwiener_ left21:31
Garen_ joined21:31
Dieterbe engla: uhu21:31
anyway i'm watching http://developer.yahoo.com/yui/theater/video.php?v=prestonwerner-github, awesome talk schacon21:32
schacon ugh, i hate that one21:32
tbf left21:32
schacon the first section of slides was all messed up21:32
Dieterbe oh. well it's your first video i see :)21:32
schacon it was embarrassing21:33
tty1 joined21:33
Garen left21:33
psoo left21:33
schacon that's the most i've ever f'd up a talk and i've done like 40 in the past year21:33
but thanks for the nice words! :)21:34
Bennid left21:34
raichoo left21:35
Dieterbe well, i'm not done yet watching it. surely you skipped quite some stuff but i find it very interesting nonetheless, as i imagine many others do21:36
adam[pac] left21:36
keyvan joined21:36
keyvan left21:37
k3yvn joined21:37
vasandgvd joined21:37
nairb774 joined21:37
dj_tjerk left21:38
Garen_ left21:39
pklingem joined21:39
Garen joined21:40
bx2 left21:41
raichoo joined21:41
jrichardson joined21:41
raichoo left21:41
doener joined21:44
TDJACR joined21:45
khmarbaise left21:45
pheaver left21:46
pheaver joined21:46
slonopotamus joined21:47
kpreid_ joined21:48
saccade left21:50
binjured_ joined21:51
tgunr anyone know how to correct a "error: pack-objects died of signal"? google is not much help21:51
this was during a clone of a fresh --bare repo21:52
binjured_ left21:53
g0bl1n joined21:54
icwiener joined21:55
pk4r left21:56
g0bl1n left21:57
jrichardson tgunr: have you tried redoing it?21:57
s4msung joined21:57
tgunr the clone?21:57
simplechat joined21:58
alley_cat left21:58
tgunr error: git upload-pack: git-pack-objects died with error.21:59
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.21:59
I suppose i can re-upload the bare repo to the server again but this is a bit disconcerting21:59
jrichardson tgunr: Yeah, possible corruption would make me nervous too!22:00
slonopotamus left22:00
mikedub joined22:01
kipras left22:01
RobertLaptop left22:01
ereslibre left22:01
mikedub so I just issued `fatal: Out of memory, malloc failed22:02
oops22:02
sixteneighty left22:02
mikedub I issued `git add *` and got the error above.22:02
cbreak did you add a lot or huge files?22:02
brodyberg left22:03
mikedub a lot of files, yeah22:03
inital commit22:03
webchick left22:03
mikedub something like `find . -type f -name '*php' -exec git add {} \;` should work, though, eh?22:04
cbreak both should work22:04
do you have only little memory?22:04
mikedub 2GB22:05
n3kl joined22:05
mikedub there are a ton of files though22:05
tgunr thats not little22:05
mikedub like, a silly amount22:05
navetz left22:05
k3yvnkeyvan22:05
tgunr what os?22:05
n3kl Hello22:05
mikedub linux22:05
n3kl is this the git vcs channel?22:05
Paraselene__ left22:06
mikedub the machine is pretty lean22:06
aheinecke left22:06
mikedub I have to attribute it to there being too many files22:06
mugwump n3kl: yes22:06
tgunr i would think 2GB is way more than adequate22:06
mikedub me too :]22:06
tgunr try the incremental find and add22:06
mikedub yeah I've got that running now22:07
nairb774 left22:07
eek812 left22:07
mikedub git add * ran for ~5 mins before i got the out of mem error22:07
mugwump how big are you files?22:07
*your22:07
mikedub smallish22:07
flazz left22:08
mikedub 1-30kb22:08
tgunr thumbnails :)22:08
mikedub heh no I'm ignoring image files22:08
it's an ecom system22:08
Magento22:08
built kinda like the Zend framework.. loads of files buried in a sea of directories22:09
n3kl I am comming from years of subversion to <2 days of git and struggling with something. I created a local repository, added a remote and pushed the files to the remote. Works good when I clone from the remote hub also. Now when I clone from the original and push the changes back to the original, then attempt to push those changes to the git hub, the clones don't get the updated version.22:09
They can see the log entries, but I can't update to teh local filestructure of the latest revision22:10
what am I doing wrong?22:10
coppro joined22:11
mikedub 6500+ files I guess22:12
mugwump n3kl: the answer is to be found in the first few paragraphs of man git-push (the refspec stuff), and looking at 'git show-ref' and 'git ls-remote origin'22:12
Gitbot n3kl: the git-push manpage can be found at http://git.or.cz/man/git-push22:12
rgr left22:13
cbreak n3kl: did you push to a non-bare?22:13
mugwump what you are trying should work, you just need to make sure you are pushing the right refs to the right places22:13
n3kl the first push to the hub was a bare22:13
cbreak do you know what bare means?22:14
binjured left22:14
tgunr n3kl: are you expecting all the clones to be updated after a push?22:14
n3kl cbreak: maybe, it looks like it only contains the repository and not the filesystem. Though, to answer your question the repo was created with git init --bare22:15
LiamH left22:15
cbreak ok, then pushing to it should not be a problem22:15
mikedub it created 9046 objects in the git repo22:15
n3kl tgunr: yes. I expect that once I push to the hub, that when I do a fetch from the clones of that hub, the local file structure is of the latest revision22:15
cbreak fetch won't do that22:16
n3kl though, when I did push changes back to the original, the original is not a bare repo22:16
cbreak fetch will update remote tracking branches22:16
not the local branches22:16
use pull or rebase for that22:16
pull or pull --rebase I mean22:16
sgh left22:17
n3kl so fetch only updates the metadata, so to speak?22:17
Meow`` joined22:18
pheaver left22:18
n3kl am what I attempting common?22:18
coppro left22:18
jlehmann left22:19
jovianjake joined22:19
engla left22:20
blaines joined22:20
blaines left22:20
nairb774 joined22:20
blaines joined22:21
webchick joined22:23
unix_remote left22:24
n3kl Alright, so when I do a git pull --rebase on the clone of the original that I originally made the changes on, I loose my changes to the filestructure.22:24
aspotashev|eeepc left22:27
pklingem left22:27
tgunr does git version 1.7.1.rc1 support post-checkout hook?22:28
webchick left22:29
coppro joined22:29
jboom left22:29
tgunr neve mind, brain fart22:30
jboom joined22:30
Garen_ joined22:31
tazle_ joined22:31
jrichardson once I have changed a file, and want to change it back, in the local repo (without having commited the original changes) how do I do that? I tried rm file, and then git pull to get fresh copy, to no avail. What am missing?22:32
tgunr i think git rm --cached, double check the option22:32
khelll left22:32
Garen left22:33
SimManiac left22:33
tgunr nope22:33
git reset HEAD file ?22:33
ipatrol joined22:33
ipatrol Why won't git://github.com/zvoase/baseconv.git work?22:34
bousquet joined22:34
tgunr define work :)22:34
tg left22:35
mugwump Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Is it making faces at you? Does it want more money? Is it sleeping with your girlfriend? Please be specific!22:35
jboom left22:35
ipatrol I can't download the content for the tree22:35
andreaa left22:35
spaceonline joined22:35
tg joined22:36
tgunr works here22:36
nDuff ipatrol, what does it do when you try?22:36
Weasel[DK] left22:36
tgunr as in: I got the repo22:36
ipatrol nDuff: All I get is the .git folder22:37
nDuff ipatrol, and if you check out a branch with code on it?22:38
ipatrol nDuff: I use Git GUI22:38
corto joined22:38
nairb774 left22:38
cannonball left22:39
nDuff is not in a position to support arbitrary GUIs.22:39
camonz joined22:39
corto hi guys, i'm just wondering if there is a simple way to copy a snapshot of current working tree to another dir... like when preparing my kernel, i would copy a snapshot in /usr/src/linux, but continue working in my git dir...22:39
ipatrol nDuff: It comes with git for Windows22:39
n3kl can I wipe out my last commit. I have taken things from bad to worse22:41
ipatrol nDuff: what's a revision expression?22:42
brez- left22:42
mugwump ipatrol: see man git-rev-parse22:42
Gitbot ipatrol: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse22:42
jonshea left22:43
n3kl how do I know which commit I am working on now?22:43
tgunr n3kl: look at git commit --amend22:43
ipatrol All I want to do is download http://github.com/zvoase/baseconv22:45
tgunr given a sh1 reference, what is the quickest way to find the file associated with it? I need to use it in a script.22:45
ipatrol Yay, github archive downloads!22:46
tgunr ipatrol: git clone git://github.com/zvoase/baseconv.git works for me22:46
novas0x2a1 joined22:46
thiago_home left22:46
n3kl ug, thanks for the tips22:46
ipatrol This gui probably has issues22:47
novas0x2a left22:47
MrPunkin joined22:48
altrux left22:50
MrPunkin I stashed away some changes, changed branches, patched some code, changed back to master and merged in the patch, but now am having issues popping the stash back onto master.22:50
nairb774 joined22:51
RobertLaptop joined22:52
aadster joined22:52
aadster ns identify santa572june22:53
coppro left22:53
mugwump aadster: attack localhost22:54
aadster hm22:54
whats that22:54
mugwump er22:54
sounded like you were a zombie22:54
10:53 < aadster> ns identify santa572june22:54
ereslibre joined22:54
ereslibre left22:54
ereslibre joined22:54
mugwump if that's some password of yours, I'd change it ;)22:54
aadster fk22:54
thats my pass i use for everything22:54
mugwump orly22:55
aadster ns identify santa572june [email@hidden.address]22:55
hm22:55
why itsn ot working22:55
mugwump ooo22:55
now I can log into your gmail22:55
mikedub left22:55
mugwump and start assuming your identity22:55
aadster hm22:55
i doubt that22:55
you dont have my ip22:55
cdr- joined22:55
aadster u think u know abut computers22:56
my dad teaches them22:56
mugwump yeah? my dad *is* a computer22:56
aadster ns identify santa572june [email@hidden.address] register22:56
corto my dad is a moron, he's proud of me22:57
aadster ns identify santa572june [email@hidden.address] aadster22:57
rolfb aadster: considering trying /msg nickserv instead ?22:57
mugwump chuckles22:57
Arelius left22:57
Arelius joined22:58
aadster msg nickserv identify santa572june [email@hidden.address]22:58
rolfb hmm22:58
.. / not working?22:58
aadster no22:58
coppro joined22:58
tgunr ok, twice now i have uploaded a 1.2GB repo created locally with git clone --bare and both times a subsequent clone of the repo on the server is reuslting in git-pack-objects died with error. Is there any way to check the objects on the server? I see git-fsck but that seems to be for a local cloned repo22:59
crab git fsck is for any old repo.22:59
cbreak how much ram is on the server?22:59
do you have shell access?22:59
tgunr i shell access23:00
don;t know how much ram, let me see23:00
cbreak can you do git repack on the server?23:00
tgunr crab: include a bare?23:00
crab tgunr: sure.23:00
coppro left23:00
eighty4 joined23:00
MrPunkin Can anyone tell me if you can apply stashed changes to an updated commit of the branch the stash originated from?23:01
cbreak you can attempt to apply them to anything23:01
aadster left23:01
tgunr ah ha: Yikes! One of your processes (git, pid 1479) was just killed because your23:01
processes are, as a whole, consuming too much memory. If you believe you've23:01
received this message in error, please contact Support.23:01
nairb774 left23:02
TeckniX left23:02
cbreak git repack uses a lot of memory23:02
I read somewhere about twice as much as the biggest blob or something23:02
but I have no idea23:02
some people said they ran out of 32bit memory space :)23:03
schacon left23:03
giallu left23:03
warlock_mza left23:03
corto left23:04
spaceonline left23:05
priidu left23:05
jrichardson left23:10
AlericInglewood um, how to rename a branch?23:11
bentob0x left23:11
jonshea joined23:12
ThiefMaster git branch -m from to23:12
AlericInglewood thanks23:12
jonshea left23:13
Arelius left23:14
ilteris- joined23:14
Arelius joined23:14
orafu joined23:15
hayden92 joined23:15
nairb774 joined23:18
hayden92 left23:18
christophsturm joined23:18
byteframe joined23:20
djbpython joined23:20
byteframe How can I list the last tag created?23:20
MrPunkin left23:20
djbpython new to git, i set up a repo add everything then commit -a, trying to archive and its just printing everything to the terminal...23:21
CSSnub left23:21
djbpython --format=tar and i've verified it does support tar23:22
following everything i've found on the internet, seems straight forward23:22
tvw left23:23
tgunr given the following reference in .git/objects how can i find out which file this is?23:24
-rw-r--r-- 1 tgunr 194103351 2010-04-11 09:01 9a462c0fe7e5ede65d0c2a77f0606ba11148d923:24
jsilver joined23:24
davr tgunr: what are you using git archive for?23:24
err, sorry, that should be djbpython:23:24
TeckniX joined23:24
tgunr this file is really huge and casuing me greif on the server23:24
pantsman left23:24
tgunr grief too23:25
djbpython davr to send a django project to my webhost23:25
davr tgunr: look under "Removing Objects" here: http://progit.org/book/ch9-7.html - it tells how to find what the largest files in your repo are23:27
onigiri_ joined23:27
davr djbpython: according to the man page for 'git archive', writing to std out is what its supposed to do by default. did you forget to put "--output=<file>" ?23:28
djbpython doh23:28
davr i guess you could also do "git archive (blah) > outputfile"23:28
tgunr cc, reading23:28
Ilari tgunr: 'git rev-list --all --objects | grep 9a462c0fe7e5ede65d0c2a77f0606ba11148d9' should print one name for it.23:29
codetroll left23:29
djbpython davr, that option is not in the usage at the command line which is how i missed it i guess23:29
thanks23:29
Arelius left23:31
Arelius joined23:31
TeckniX left23:31
schacon_ joined23:32
jrmuizel left23:32
aziz left23:33
t0rc joined23:36
Yuuhi left23:36
t0rc If you have git and ssh running on a few computers, do you have to do anything special to pull/push between them?23:36
mithro left23:37
RandalSchwartz the git command has to be in your path23:37
or maybe it's git-receive-pack23:37
spearce joined23:37
qfr t0rc nope not really23:38
I used to do it frequently23:38
v0n left23:38
RandalSchwartz git remote add othername hostname:/path/to/repo23:38
git fetch othername23:38
qfr I just started out with git init --bare or whatever it was called and then I could push to it23:38
RandalSchwartz git push othername23:38
etc etc23:38
t0rc nice nice23:38
ajonat joined23:39
RandalSchwartz just be sure your workflow doesn't require pushing into a checked out branch23:39
that'll be a world of hurt23:39
t0rc it'll just be my work. :)23:40
RandalSchwartz well - even still23:40
doesn't matter whose it is23:40
don't push into a checked out branch23:40
RandalSchwartz wanders off to get dinner23:40
juan_arandaalvar joined23:40
t0rc what do I do if I'm only using one branch though?23:41
t0rc left23:43
bx2 joined23:43
fgiraldeau joined23:45
spearce left23:45
enherit joined23:45
dreiss left23:46
Titan8990 joined23:46
Arelius left23:47
simplechat left23:48
Arelius joined23:48
schacon_ btw, if anyone is interested - github now supports smart http protocol23:48
if you want to test it out and you have a newer git, have at it23:48
mugwump win on toast23:49
altogether left23:49
schacon_ let me know if anything asplodes23:49
slonopotamus joined23:50
icwiener left23:51
enherit_ joined23:52
bousquet left23:53
Heimidal left23:55
enherit left23:56
enherit_enherit23:56
navetz joined23:57
enherit_ joined23:57
jomofo joined23:58
AAABeef left23:59

Logs Search ←Prev date Next date→ Channels Documentation