IRCloggy #git 2010-03-08

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-03-08

dj_tjerk left00:01
reprore joined00:01
christophsturm left00:01
thiago_home left00:04
svilayphiou joined00:06
alley_cat left00:07
marcelinollano joined00:09
robinr left00:09
svilayphiou hi, I was working on some branch "experimentel" and wanted to merge it with master. So I checked out master and run git merge experimentl. But in "experimental I renamed a folder and now git is complaining. Here is the git status log: http://dpaste.com/169233/00:10
How can I tel git to reflect the "experimental" branch and forget about how master was organized ?00:10
bob2 renaming, by itself, is fine00:11
topi` left00:11
smuf left00:11
wereHamster looks like you renamed the files in both branches00:11
Chaser_ left00:12
bj2 left00:13
svilayphiou wereHamster: any solution to fix that? I'd like master to reflect "experimental"00:15
wereHamster reflect which changes? All of them?00:15
.. completely overwrite master with what is in experimental?00:15
svilayphiou yes00:15
wereHamster then take a look at the 'ours' merge strategy00:17
f00li5h[HireMe]f00li5h00:17
quag left00:19
svilayphiou wereHamster: so if I'm on master and I want to merge experimental and reflect the experimental branch should I run git merge -s ours ?00:20
metalfan_ left00:24
wereHamster I guess you didn't read the man page.. (man git-merge -> MERGE STRATEGIES)00:28
Gitbot wereHamster: the git-merge manpage can be found at http://git.or.cz/man/git-merge00:28
Sonderblade left00:32
johnw joined00:32
daaku left00:36
jasonn1234 joined00:36
alexmchale joined00:41
cxreg hrm00:44
i wonder if there's any way to push a set of refspecs atomically00:44
alexmchale left00:44
cxreg i'm guessing not00:44
alexmchale joined00:45
pantsman left00:45
wereHamster nope00:46
lemonchicken left00:46
svilayphiou wereHamster: found my way out; Thanks00:47
fool_ joined00:48
fool_ left00:48
fool_ joined00:48
alexmchale left00:48
fool__ left00:51
tildeequals left00:55
Hackykid_ left00:58
flaguy48 joined00:59
richcollins joined00:59
jasonn1234 left01:00
krawek joined01:02
claudineclaudine_away01:03
ntoll left01:04
zehrique joined01:05
Mooseous joined01:07
themill left01:07
Mooseous left01:10
jinzhu joined01:11
Mike_lifeguardDr_Mike01:11
Mooseous joined01:12
Alagar left01:13
pilif|away left01:18
jasonn1234 joined01:18
halfdime left01:19
pilif joined01:20
pilifpilif|away01:20
ttvd left01:20
LRN left01:23
svilayphiou left01:25
LRN joined01:25
jjuran left01:26
jjuran joined01:26
rburton- joined01:27
rburton- re01:27
small channel :)01:27
segher left01:27
rburton- Are there any good tutorials for working with SVN from git. I have git-svn, when issusing git-svn clone -s .... all I see created is a local .git folder01:27
jjuran left01:28
jjuran joined01:28
squisher joined01:29
offby1 dunno about tutorials ...01:31
that sounds odd.01:31
I too would have expected you'd get a working tree.01:32
unreal left01:32
offby1 run gitk --all, see if you have anything at all01:32
rburton- git-svn clone -s https://svn.apache.org/repos/asf/cassandra/trunk .01:32
waiting for it to finish again ;)01:32
offby1 I don't think it makes sense to use "-s" if you're specifying "trunk" in the URL.01:32
claudine_awayclaudine01:32
offby1 I think "-s" means that it'll expect to find "trunk", "branches", and "tags" _beneath_ the URL that you give01:33
rburton- I've ran that now because without it I still didn't get it working it's just an ignorant test01:33
zehrique left01:33
rburton- removed it and running it again. itll take while01:34
so git-svn clone https://svn.apache.org/repos/asf/cassandra/trunk should be fine right01:34
unreal joined01:36
johnw left01:36
simplechat left01:36
disappearedng left01:36
fr left01:36
bigpresh left01:36
dsop left01:36
Wizzup left01:36
badboy_ left01:36
stuffcorpse left01:36
Plasmastar left01:36
tychoish left01:36
navap left01:36
yzlin left01:36
blasdelf left01:36
jacobat left01:36
trilobyte left01:36
merlin83 left01:36
sw4 left01:36
kozmikreis left01:36
aef left01:36
tk left01:36
offby1 I would hope so.01:37
you'll just get one branch01:37
rburton- Which is fine01:37
Running it on trunk, branches, etc.. would take a lot of time01:37
offby1 yep01:37
it's painfully slow as it is01:37
rburton- right :)01:38
johnw joined01:38
simplechat joined01:38
disappearedng joined01:38
fr joined01:38
bigpresh joined01:38
dsop joined01:38
Wizzup joined01:38
badboy_ joined01:38
stuffcorpse joined01:38
Plasmastar joined01:38
aef joined01:38
tychoish joined01:38
navap joined01:38
yzlin joined01:38
blasdelf joined01:38
jacobat joined01:38
trilobyte joined01:38
merlin83 joined01:38
sw4 joined01:38
kozmikreis joined01:38
tk joined01:38
LotR joined01:38
Morasique joined01:38
unregistered is it possible to have "git log --stat", along with some indication of deleted files? like a combination of --stat and --name-status01:38
infogulch left01:39
infogulch joined01:39
squisher left01:40
offby1 try "git log --raw"01:40
not really sure what you want, but I like it01:40
Dr_Mike How can I have 'git remote' to always do 'git remote -v' ? Setting an alias seems to have no effect, presumably because it is a git builtin?01:42
unregistered offby1: well it combines with stat, not quite how pictured it, not as compact, but it has everything i want01:43
thanks01:43
richcollins left01:43
offby1 Dr_Mike: yeah, the builtin probably trumps your alias. I'd just rename the alias, and form the habit of using it.01:44
Dr_Mike pouts :P01:44
SpookyET I must be some sort of mutant. I prefer Ruby to Python, but I prefer Django to Rails, and I prefer Git's branching to Mercurial's.01:45
infogulch left01:45
unregistered SpookyET: I don't get how the first two relate to the third?01:47
inappropriate question mark..01:47
infogulch joined01:48
SpookyET Django is written in Python. Rails in Ruby, Mercurial in Python. git it?01:48
jasonn1234 left01:48
unregistered mercurial's language is irrelevant when you use it. and Git is in C. so the relation doesn't fit well :)01:49
_rane language doesn't have any relation :p01:50
SpookyET Python projects generally use Mercurial.01:50
beejeebus joined01:50
DavidKlein left01:51
offby1 SpookyET: OK, OK; you're a mutant.01:53
marcelinollano left01:53
DrNick left01:53
marcelinollano joined01:53
marcelinollano left01:53
marcelinollano joined01:53
marcelinollano left01:53
marcelinollano joined01:54
marcelinollano left01:54
marcelinollano joined01:54
marcelinollano left01:54
marcelinollano joined01:54
tildeequals joined01:54
marcelinollano left01:55
DrNick joined01:55
ohadlevy joined01:56
ohadlevy hello, I have a feeling that I'm working wrongly with git, I'm trying to have a master branch (aka stable) and an edge branch(where new features comes in), many time, the edge branch will include stuff that I dont want in master, so I end up having to branches which are getting far away from each other, eventually, I cherry pick bug fixes and new stable features into both branches, but that doesnt seem right - am I missing something here?01:57
unregistered SpookyET: You are the twisted spawn of a git mascot and the django pony. And you poops out red gems.01:58
Plasmastar left01:58
Yuuhi left01:58
unregistered i was trying to make that in gimp and gave up.01:59
SpookyET ohadlevy: there is a graph you should check out01:59
http://nvie.com/git-model01:59
unregistered: Cheap bastard. Use photoshop.01:59
squisher joined01:59
ohadlevy SpookyET: thanks, looking02:00
alexmchale joined02:00
Plasmastar joined02:00
aryounce left02:00
nadavoid joined02:01
_rane ohadlevy: maybe you should have feature-specific branches instead of a single edge branch02:01
ohadlevy SpookyET: but all of those are cherry-pics?02:01
beejeebus hi, i'm trying to pick up work on a feature branch someone else created. i'm looking for the commands to tell me if the feature branch is tracking our HEAD branch02:02
stuffcorpse left02:02
LRN left02:02
faulhel joined02:03
TannerF joined02:03
ohadlevy _rane: you might be right, but it seems like an overhead02:03
stuffcorpse joined02:03
coolcat left02:03
_rane cherry picking lots of single commits is more overhead, imo02:03
bob2 ohadlevy: what overhead?02:04
_rane with feature branches you can just merge/rebase02:04
ohadlevy _rane: because at the end I still want to have an edge branch, so I would need to cherry-pick again regardless02:04
bob2 ohadlevy: no02:04
ohadlevy: you can merge them entirely in to edge, too02:04
KB1JWQ joined02:04
sivel joined02:04
KB1JWQ left02:04
_rane if you need to cherry-pick from feature branches, you're probably doing something wrong02:04
Morasique left02:04
navap left02:04
Morasique joined02:04
navap joined02:04
ohadlevy _rane: i guess the question is what is the base branch for the feature branches, is it edge or master?02:05
pbevin joined02:06
ChanServ set mode: +o02:06
CO_gairah_tinggi left02:06
sivel set mode: -o02:06
alexmchale left02:07
faulhel left02:08
squisher Hi, I'm on branch A, created branch B, renamed a file 'foo' to 'bar', and changed bar. Now I switched back to A, and merged branch B, thinking that it would add bar to the repository. It did, but since bar was based on foo, it disappeared.02:08
nadavoid left02:08
squisher What's the best way to bring foo back?02:09
bob2 was there a delete in there somewhere?02:10
or was bar an existing file that you obliterated?02:10
squisher I think I did a 'git mv foo bar"02:10
the strange thing is, I didn't get a 'merge' entry in the logs02:12
Mooseous left02:12
bob2 perhaps pastebin your terminal session?02:12
nadavoid joined02:12
GyrosGeier squisher, since B was based on A and A was unchanged, B was a descendant of A02:13
squisher bob2, unfortunately it's all over several days, so I don't have that. The outline should be pretty accurate though02:13
GyrosGeier merging a descendant yields a fast-forward02:13
squisher GyrosGeier, yes, exactly. I understand that, and I know git did the correct thing02:13
but I want something else, namely to have foo and bar both present...02:13
bob2 oh wait02:13
you're complaining that foo is gone02:13
squisher yes :)02:13
bob2 I thought it = bar02:13
no ambiguous pronouns02:14
squisher I know, my bad :-\02:14
bob2 git did fine, you needed to cp foo if you wanted them to both exist02:14
squisher bob2, yes, I know... so the easiest way to recover would be to just check out the previous version, and then copy it into master?02:15
bob2 git co somerevisionwherefooexisted -- foo ; git add foo02:16
I'd say02:16
fr left02:17
fr joined02:18
aef left02:19
squisher bob2, great that worked fine. Thanks for the help, and sorry again about the confusion...02:19
ttvd joined02:20
mbroeker left02:21
pbevin left02:23
alexmchale joined02:23
Bombe left02:23
VVSiz_ joined02:24
Bombe joined02:24
jaysern joined02:25
VVSiz left02:27
spaceonline joined02:27
alexmchale left02:29
rickjarr joined02:30
sivel left02:30
rickjarr left02:31
nadavoid left02:37
cxreg i just realized that the stash keeps your index separate from your work tree with a merge. that's slick.02:39
alexmchale joined02:40
alexmchale left02:41
bremner sitaram: fyi, pretty much what I pasted before. http://www.cs.unb.ca/~bremner/blog/posts/gitolite-mirror/02:43
_Tristan joined02:43
_Tristan how do I rollback to recent commits?02:43
bremner sitaram: I'll send you the source after I find a few more errors like the one I just fixed.02:45
tychoish left02:47
disappearedng left02:48
mr_daniel joined02:48
tychoish joined02:48
mdel joined02:48
sitaram bremner: how did you fix the pushurl problem?02:48
Dr_Mike _Tristan: git revert, I think02:48
mr_danie1 left02:50
alexmchale joined02:52
altogether joined02:53
rawrio joined02:53
parasti left02:53
flaguy48 left02:57
jasonn1234 joined02:57
altogether left03:01
disappearedng joined03:01
alexmchale left03:03
neunon left03:04
kingfishr left03:05
altogether joined03:06
hyperair joined03:07
kukks left03:11
alexmchale joined03:14
alexmchale left03:15
peanut_bu joined03:15
_Tristan Dr_Mike: thanks03:18
munichlinux joined03:20
cytrinox_ joined03:20
bcardarella joined03:20
aryounce joined03:22
Hannahaus joined03:22
Hannahaus http://imgnow.info/DSC-7-03-10.jpg/ do my tits look small?03:22
Hannahaus left03:22
cytrinox left03:23
cytrinox_cytrinox03:23
beejeebus left03:24
hgimenez left03:27
hgimenez joined03:28
Dr_Mike I can say "yes" to that without even looking. Now GTFO.03:28
hyperair left03:31
_Tristan I just got " ! [rejected] master -> master (non-fast forward)" when trying to git push origin master03:32
what do I do?03:32
bob2 you have to pull first03:32
you're missing things that the remote master has03:32
so pushing would obliterate them03:32
cbreak you can force the push and kill everything the other people have done03:32
they will hate you for it and call you names03:33
unregistered if two people push to a remote repo at about the same time will one of them get an error message?03:33
cbreak (usual way is to merge the changes or rebase yours on top of theirs, then push so fast-forward works)03:33
aryounce left03:34
_Tristan cbreak: it's my repo, nobody else is helping03:34
Mage left03:35
cbreak you only ever pushed from the repository you push now?03:35
you never did any history rewriting like --amend or rebase -i or reset?03:35
_Tristan mhm, but I just did git checkout to undo a boo boo I made03:35
Mage joined03:35
cbreak checkout doesn't undo anything03:35
_Tristan it did for me03:35
cbreak it doesn't03:36
checkout checks out something03:36
it doesn't change history03:36
_Tristan I made changes in my files, bad ones. I got old versions.03:36
cbreak so it can't undo things03:36
did you remove the bad changes from history somehow?03:36
that can make fast-forwarding impossible03:37
_Tristan I dunno. It works now.03:37
aresnick joined03:37
cbreak (by amending a commit)03:37
hyperair joined03:37
_Tristan I did git pull origin master and it played nice03:37
unregistered oh, i just realized i asked the completely wrong/stupid question. If someone pulls frome a repo over ssh, while I'm in the middle of a push, does the puller get an error message?03:37
cbreak do a git log to see how nice03:37
bob2 _Tristan: the thing to remember is that by default you can only push to a branch when your local version is up to date03:38
_Tristan: you can force it, but you'll destroy stuff on the other side03:38
unregistered I got a call from a friend saying he couldn't push or pull. I had been pushing a lot of changes at the time, and am wondering if that was why.03:38
he had no problems after that03:39
_Tristan here's my commits: http://github.com/devTristan/Damien/commits/master03:39
jony joined03:40
aryounce joined03:40
cbreak seems "added unit testing" and "fixed typos" have the same parent03:42
so you did that at the same time, from different hosts03:42
or03:42
you did it parallel in some other way03:42
glimpse_nirvana_ joined03:44
_Tristan *shrug* I'm just getting to know git. My code started doing segfaults so I rolled back a bit. That could be it.03:44
alexmchale joined03:45
joeconyers left03:45
SpookyET left03:46
bob2 rolled back = ?03:46
glimpse_nirvana_ left03:47
Mooseous joined03:47
pantsman joined03:48
pantsman left03:48
pantsman joined03:48
glimpse_nirvana_ joined03:51
scarabx left03:52
ankit9 joined03:54
reprore left03:54
alexmchale left03:56
aryounce left03:56
_Tristan bob2: uh... I ran git checkout * I think03:56
rawrio left03:56
TannerF left03:56
TannerF joined03:56
pantsman left03:57
_Tristan no, git checkout -f03:57
timja left03:57
TannerF left03:57
bob2 can't really see how that could cause problems03:58
_Tristan I'm definitely not an expert on the matter03:58
bob2 me either03:58
unregistered wouldn't that only throw away local changes.. not actual commits?03:58
bob2 fixed now, right?03:58
_Tristan sort of, there's something weird in my commit log, but I'll probably scrap it once the project is stable anyways03:59
Twisted_Mentat left03:59
aryounce joined04:03
glimpse_nirvana_ left04:03
cxreg ponders a script which includes a "git rebase", and how to resume execution when the user fixes conflicts04:05
cbreak ./script --resume04:05
or --continue04:06
cxreg cbreak: um04:06
if only life were so simple :P04:07
cbreak normal rebase has that04:07
cxreg yes thank you, you're very helpful04:07
mr_daniel left04:08
cxreg i find myself wishing rebase started a subshell when it errored out04:09
mr_daniel joined04:09
spaceonline left04:09
Mooseous left04:09
timja joined04:09
aryounce left04:09
kelvie left04:10
Mooseous joined04:11
bronson left04:12
kelvie joined04:16
Davey joined04:21
bradb left04:22
Mooseous left04:22
bradb joined04:22
nevyn joined04:23
Mooseous joined04:25
hyperair left04:27
mdel left04:27
kingfishr joined04:28
bradb left04:31
bradb joined04:31
bradb left04:31
jasonn1234 left04:32
cedricv joined04:35
owen1 git clone git@localhost:test.git and i asked for git@localhost's password. it never asks me this when i do it from my laptop. what is this password? the git user?04:36
bob2 it's ssh04:37
so yes04:37
presumably you set up keys on your laptop04:37
_Tristan don't you have to use keys?04:37
owen1 bob2: what keys?04:37
bob2 _Tristan: no04:37
owen1 and how to set it on the desktop as well04:37
bob2 owen1: ssh keys04:37
_Tristan public keys... they have a tutorial on github04:37
owen1 it's gitosis, and i am on the same machine where my repo exist.04:38
SpookyET joined04:38
SpookyET What's the deal with the big files git project? I feel dirty saying SVN has an edge on Git in that regard.04:39
bob2 you get to feel wrong, too, I guess04:39
since it's basically the same (except in svn you might not check out the part of the tree that has them)04:39
owen1 bob2: both my laptop and desktop's keys are in keydir folder04:39
bob2 ok04:40
SpookyET I'd like to version 50-100MB PSD files in Git04:40
bob2 that will suck in any common vcs04:40
owen1 bob2: so what is this password? i don't think i have password for git user04:40
bob2 owen1: perhaps that is the problem then04:40
owen1 git:x:114:121:git version control,,,:/home/git:/bin/sh04:40
not sure what it means..04:41
bob2 passwords are in /etc/shadow-04:41
er no -04:41
alexmchale joined04:42
Davey left04:43
taufiqkh joined04:44
alexmchale left04:44
alexmchale joined04:45
MetaCosm SpookyET, wow, let me know how that works out04:45
SpookyET MetaCosm: It's sucky04:45
Though, In SVN, you can commit 1GB file; it won't die on you.04:46
owen1 bob2: also, i see my desktop in gitosis.conf04:46
kelvie left04:48
MetaCosm SpookyET, do PDFs to binary diff'ing well?04:49
bob2 pdfs are generally deflated afaik04:49
_Tristan PDFs are the devil04:50
(pdf is satan spelled backwards)04:50
MetaCosm well, I meant PSD's... hehe04:51
so, skip that.04:51
also, I thought PSD's had thier undo history saved in them04:51
_Tristan pretty sure git will avoid non-code04:52
bob2 git will (try to) commit whatever you ask04:53
psds etc are not very binary diffable, thouygh, so will suck up lots of space04:53
MetaCosm bob2, that is too bad04:53
bob2, do you know if they keep long undo paths in them?04:53
bob2 dunno, don't think I've ever used photoshop04:54
chuck How do I revert back to a certain commit?04:59
(Without using git-reset)04:59
mr_danie1 joined05:00
aussiegeek joined05:00
psankar joined05:01
squisher left05:03
jmcantrell left05:03
mr_daniel left05:03
fryguy chuck: ?05:04
you use git reset05:04
kelvie joined05:04
anxiolytic joined05:05
bcardarella left05:07
disappearedng left05:13
alexmchale left05:14
anxiolytic My friend and I merged off of a branch awhile back. I want one of his commits to "replace" one of mine. I can merge his branch into mine, but I want to undo some changes I did from a commit awhile back before doing so. Not sure how to do it? I can manually remove/edit the files but I'd rather not05:15
Mooseous left05:15
dogmatic69 joined05:15
dogmatic69 hi all05:15
fryguy anxiolytic: cherry-pick05:15
jfkw left05:16
aresnick left05:16
dogmatic69 what does git mean when its says "ahead of origin/dev by 50 commits"? if i push or pull it says everything up to date05:16
bob2 you're not pushing or pulling to origin/dev05:16
presumably05:16
fryguy dogmatic69: it means that you have done 50 commits that aren't in origin/ yet05:16
origin/dev specifically05:17
dogmatic69 but i just pushed05:17
fryguy where did you push?05:17
dogmatic69 to dev05:17
im on dev05:17
and did git push05:18
bob2 that doesn't indicate that05:18
pastebin the whole thing git said05:18
dogmatic69 well the last push to master http://github.com/infinitas/infinitas05:18
anxiolytic fryguy: thanks05:18
dogmatic69 more than a month ago, so i DID go to dev05:18
kokx left05:18
fryguy dogmatic69: pastebin "git status ; git push origin dev"05:19
kokx joined05:19
dogmatic69 i cant copy paste from git bash :/05:19
kokx left05:19
bob2 yeah you can05:19
dogmatic69 screenie on the way05:19
no i cant05:19
fryguy fpaste, curlpaste, screen buffer, there's tons of options05:19
pick one05:19
dogmatic69 ?05:19
bob2 why can't you?05:20
rich97 joined05:20
kokx joined05:20
kokx left05:20
kokx joined05:21
dogmatic69 fryguy: so how i do something like you said?05:22
bob2 pastebin the output05:22
fryguy you install one of the first 2, and then pipe output to it05:22
dogmatic69 meh05:23
like i said, i cant copy paste05:23
bob2 why05:23
fryguy dogmatic69: are you retarded? install curlpaste and pipe output to it05:23
or fpaste, or wgetpaste, or whatever your distro provides05:24
dogmatic69 fryguy: are you a fuck up?05:24
project2501a joined05:24
bob2 dogmatic69: chillax and pastebin the information asked for05:24
fryguy or just select text and middle click into a pastebin if you are in X1105:24
dogmatic69 bob2: ye, just dont need to be called a retard05:24
bob2 dogmatic69: sure, that was out of line05:25
kokx left05:25
bob2 dogmatic69: but you're being pretty frustrating for someone who's asking for help05:25
kokx joined05:25
dogmatic69 well im new to git, running on windows and there is no copy paste option i know of05:25
kokx left05:25
fryguy dogmatic69: click the terminal icon05:25
bob2 you can easily copy and paste from cmd.exe05:25
fryguy top left corner05:25
kokx joined05:26
kokx left05:26
Mooseous joined05:26
dogmatic69 http://i45.tinypic.com/30sy15s.jpg05:26
kokx joined05:27
kokx left05:27
disappearedng joined05:27
rchavik joined05:27
rburton- I'm hitting the following "RA layer request failed: REPORT of '/repos/asf/!svn/vcc/default': SSL negotiation failed: SSL error: parse tlsext (https://svn.apache.org) at /opt/local/libexec/git-core/git-svn line 4938" with git-svn clone05:27
kokx joined05:28
fryguy dogmatic69: looks like you are pushing to not dev05:28
rburton- Not sure how to go about resolving this05:28
andres_ left05:28
kokx left05:28
dogmatic69 fryguy: like i said, it is pushing to dev05:28
cloudhead left05:28
fryguy dogmatic69: then git status doesn't say you are ahead by 57 commits05:29
kokx joined05:29
kokx left05:29
dogmatic69 so where did all my commits go?05:30
http://github.com/infinitas/infinitas/commits/dev05:30
fryguy they are in your local repository, just like git says05:30
dogmatic69 there is my dev05:30
kokx joined05:30
dogmatic69 now im ahead with 58 commits05:30
kokx left05:30
_Tristan left05:30
bob2 wow, what a dick05:30
kokx joined05:31
fryguy dogmatic69: git remote show origin05:31
dogmatic69 ?05:31
kokx left05:31
fryguy dogmatic69: it's a command, run it05:31
kokx joined05:32
Fissure dogmatic69: pulling with a url and branch argument won't update your remote tracking branches05:32
dogmatic69 you want to see it?05:32
fryguy sure, run git fetch while you are at it05:33
seems like what's happening is what fissure is saying: you aren't letting git do the tracking for you, so it doesn't know when to update tracking references05:33
ericlee joined05:34
abstortedminds joined05:34
abstortedminds left05:34
dogmatic69 well how i set the repos up is git clone url, git checkout with -- track origiv/dev05:35
fryguy dogmatic69: right, and since you are specifying a remote manually when you push, you are bypassing all of the tracking stuff05:35
dogmatic69 so how would i push?05:36
fryguy dogmatic69: git push origin05:36
Fissure you don't need any arguments to push05:36
or pull for that matter05:36
fryguy or, depending on how you have things in .gitconfig and .git/config, just git push05:36
dogmatic69 git push gives errors05:36
Fissure oh?05:36
fryguy dogmatic69: git push origin, not git push05:37
SkyPocket joined05:37
dogmatic69 nope, the addresses are wrong05:37
fryguy so fix them05:37
dogmatic69 says i cant push to git://..., use git@...05:37
yes i will just fix them...05:38
rburton- left05:38
rburton- joined05:39
Fissure well, of course things will break if you clone from the read-only url :P05:39
fryguy isn't there an introductory howto on github that explains all of this?05:40
andres_ joined05:40
SkyPocket left05:40
roop joined05:40
alexmchale joined05:42
alexmchale left05:45
alexmchale joined05:46
ttvd left05:49
ttvd joined05:50
Fissure fryguy: people reading the documentation? you're asking too much05:50
khmarbaise joined05:52
gdsx_ left05:53
gdsx joined05:53
gdsx left05:54
gdsx joined05:54
Mooseous left05:55
xsdgdsx joined05:55
owen1 git clone git@localhost:test.git and i asked for git@localhost's password. it never asks me this when i do it from my laptop. i use gitosis and i have the public keys in kefdir folder. any tips?05:57
gdsx any chanops around?05:57
xsdgdsx left05:59
munichlinux left05:59
fryguy owen1: do you have a private key for the git user onn this machine?05:59
owen1 fryguy: i don't know, but i will be happy to provide any info you need to figure it out.06:00
git:x:114:121:git version control,,,:/home/git:/bin/sh06:00
werdan7 joined06:00
fryguy ls -l /home/git/.ssh06:00
owen1 fryguy: drwx------ 2 git git 4096 2010-02-20 20:25 .ssh how to access it? it belongs and accessable only to git user06:02
fryguy: can i type su?06:02
fryguy owen1: become root, or become the git user06:02
owen1 fryguy: do i become root by typing su?06:03
fryguy owen1: sure06:03
specifics will depend on various implementation details of your operating system06:03
owen1 fryguy: i can't become su since root has no password in ubuntu. let me try the other option you mentioned.06:03
fryguy sometimes you need to use sudo, sometimes you need to add yourself to a special file first06:04
owen1: just type sudo su06:04
disappearedng left06:04
owen1 fryguy: works. here it is: -rw-r--r-- 1 git git 1052 2010-02-20 20:25 authorized_keys06:04
fryguy and have you added your public key to this file?06:05
owen1 fryguy: not sure, maybe i only added the key of the laptop. 1 sec06:05
priidu_ joined06:05
fryguy wc -l /home/git/.ssh/authorized_keys06:06
alexmchale left06:06
sergio_ left06:06
owen1 fryguy: i see 3. let me cat the public key of this machine and compare. 1 sec.06:06
munichlinux joined06:07
owen1 fryguy: yes. i see it there.06:07
webus joined06:08
fryguy dunno then06:08
owen1 fryguy: when i am running git clone git@localhost:test.git, i try to clone it as git user, right?06:09
fryguy yes06:10
project2501a left06:10
owen1 fryguy: is there a way to find the password of this user? i don't mind typing it.06:10
fryguy no06:10
you can just change it to something06:11
dogmatic69 left06:11
webchick left06:12
askedrelic joined06:13
owen1 fryguy: works now, i updated the password of git user. now, do i need to enter the public key again to make it skip the password part?06:14
fryguy i guess06:14
owen1 (so i will not have to enter it each time)06:14
ok06:14
askedrelic left06:14
anxiolytic can I remove everything that was done in an earlier commit, in my current branch?06:14
askedrelic joined06:15
fryguy anxiolytic: git revert06:15
or use git rebase -i and make it disappear, depending on if the commit is publicly visible or not06:15
anxiolytic fryguy: thx06:15
werdan7 left06:16
werdan7 joined06:16
Rolenun left06:16
engla left06:16
Axius joined06:19
hyperair joined06:19
Plasmastar left06:19
robinr joined06:20
krawek left06:21
owen1 fryguy: when i open authorize_keys i see: #autogenerated by gitosis, DO NOT EDIT06:21
fryguy: so i am scared (-:06:21
chid joined06:22
disappearedng joined06:22
Plasmastar joined06:22
owen1 fryguy: all i want to do is replace a key and add it again. i know it sounds stupid, since it looks like the same key.06:22
chid damn peanut_bu spammer06:23
chid left06:23
Dr_MikeMike||gone06:24
[greg] joined06:26
[greg] hi06:27
chid joined06:27
[greg] How can use git+https with custom signed ssl cert ?06:28
PointMan left06:28
khmarbaise left06:30
lemonchicken joined06:30
fmardini joined06:32
munichlinux left06:36
ArdRigh joined06:37
webus left06:38
bronson joined06:41
claudine left06:44
archis joined06:45
chid left06:46
bradb joined06:47
wolog left06:48
andres_ anyone used git submodules with gitolite?06:50
or how if you are the admin for gitolite, how do you refer to an arbitrary repo s.t. it is not gitolite:repo.git06:51
kipras left06:53
r11t joined06:54
robinr left06:54
johnw i'm using submodules with gitolite06:54
priidu_ left06:55
madewokherd left06:55
rseifert joined06:55
Octalot left06:56
andres_ johnw: what's the correct way to add a submodule then, would it be git submodule add gitolite:repo.git repo if I other people in working with the parent repo also need the submodule?06:56
johnw i used: git submodule add ssh://gitolitehost/project.git project06:56
rburton- left06:57
andres_ johnw: the other concern is that when I added the submodules like that, they would not appear in clones of the repo, although maybe it would be fixed by what you just shared, let me try..06:57
[greg] left06:57
johnw they won't appear in clones until the user runs git submodule --init update06:57
robinr joined06:58
andres_ was following this tutorial http://git.wiki.kernel.org/index.php/GitSubmoduleTutorial which made it seem like once you pull, you get the submodule directory, but not the submodule. I wasn't even getting the .gitmodule06:59
erikvold so I made a dump dev branch in a github repo, and the branch was pushed to github, then I went git branch -D dev_branch locally, then I did a git push, and got 'Everything is up-to-date'. How can I delete the branch on the remote repo?07:00
mark[oz] left07:01
erikvold should I git push -f ?07:01
rad182 joined07:02
andres_ johnw: the path to the submodule should it be fully qualified ssh://host.com/home/git/repositories/module.git or is ssh://hos.com/module.git enough?07:02
rad182 what whould be the difference if i initialize my git repo with07:02
init and --bare init ?07:02
Fissure erikvold: use the full refspec syntax and push the empty string to the branch07:03
robinr left07:03
Fissure e.g. git push origin :deleted-branch07:03
andres_ rad182: bare will not contain the actual files in a way you can browse them07:03
aspotashev joined07:03
johnw on my system i do not need the full path07:04
bambule left07:04
andres_ johnw: is that a public repo?07:04
johnw no07:04
aspotashev|eeepc left07:04
Fissure andres: gitosis effectively chroot's you to the repositories dir07:05
and it's treated as your home directory07:05
rad182 andres_: will there be any differnece with storage usage?07:05
andres_ rad182: not sure about that....07:05
you could test it out :)07:05
erikvold Fissure: hmm I'm confused, so you think 'git push origin :dev_branch_name' where dev_branch_name is the name of the branch should work?07:05
Fissure yes07:06
erikvold what's the ':' about?07:06
Fissure assuming origin is the proper remote07:06
jinzhu left07:06
Fissure read the manpage07:06
erikvold yep it is07:06
rad182 cuz without the --bare, when i push i can see a compressing objects but with --bare i don't07:06
andres_ Fissure: but I'm using gitolite, is there a difference?07:06
Fissure andres: probably not, but i've never used gitolite myself07:06
dpino joined07:07
WebDragon joined07:07
andres_ Fissure: but I would still have to give it the user so something like git submodule add [email@hidden.address] ?07:08
johnw you can easily use a cron job to gc all the bare repos07:08
sitaram andres_: gitolite is no different from any other ssh-based server you may be using; it and the mechanism of submodules are quite unrelated to each other. Please do not confuse yourself by asking about how gitolite works with submodules :)07:08
erikvold Fissure: ic now, thx07:08
maxthoursie joined07:08
archis left07:09
sitaram andres_: just ask the following question to people who know submodules: how can different people refer to the same repo by different URLs when the repo is actually a submodule?07:09
andres_ sitaram: I agree, but being the admin, I usually use gitolite:to access repositories, or what should I be using as the url, [email@hidden.address]07:09
jinzhu joined07:11
hipe joined07:11
dreiss left07:12
dropdrive left07:14
dropdrive joined07:14
mahound left07:14
ntoll joined07:15
rad182 left07:16
johnw hey there sitaram07:16
i e-mailed you about the .spec file07:16
mastro joined07:16
wasmahen joined07:16
wasmahen hi, i have created a url shortener, anyone would want it?07:16
mtkd joined07:17
andres_ sitaram: how *should* I be cloning repos?07:17
wasmahen left07:18
bauruine left07:18
Pewpewarrows left07:19
VVSiz_ left07:20
VVSiz joined07:20
r11t_ joined07:21
aziz joined07:21
r11t left07:22
VVSiz hi guys, peanut_bu spams me when I join #git. is that OK? :)07:22
thiago_home joined07:22
ohadlevy left07:23
Bombe left07:23
Bombe joined07:23
thiago_home peanut_bu has an on-join07:25
Pupeno left07:26
bentob0x joined07:27
SpookyET left07:29
greg8si left07:30
ph^ joined07:30
altogether left07:31
mklappstuhl joined07:32
gebi joined07:33
napster_123 joined07:34
napster_123 hey i'm trying to set a git repo on windows and have used msysgit + followed it's instructions to make a central repo on windows07:35
everything looks set up now... but whenever i try to clone the git repo i get "fatal: The remote end hung up unexpectedly"07:35
priidu_ joined07:36
Garen left07:36
napster_123 for the sake of trial i am using "git clone user@localhost..." (meaning cloning the git repo being on server machine)07:36
VVSiz naderman: git clone C:/path/to/repo should work though, right/07:37
oops, I meant napster_12307:37
napster_123 VVSiz, yeh sure... but i was testing for the case of remote client07:37
VVSiz, i think it should work since you can always ssh to your same machine07:38
VVSiz and you have ssh-server running and can conect to it?07:39
voxpelli joined07:39
napster_123 VVSiz, yes i've tried connecting through ssh using putty successfully07:40
VVSiz weird07:40
napster_123 VVSiz, but i've noticed that when i connect through putty ... on login the shell says "-bash: $'\r': command not found"07:41
psoo joined07:41
napster_123 VVSiz, does it have something possibly to do when i try to clone my repo?07:42
VVSiz but do you *really* need to setup a remote repo on Windows? :) I have my central repos on Linux (in virtual machine on Windows host) or on github, if they are public.07:42
jaysern left07:42
VVSiz napster_123: quite possibly07:42
napster_123 VVSiz, in my office, unfortunately, i have only windows machines all around... otherwise linux would've been my obvious choice for private repo hosting07:43
andres_ johnw: aside from doing a git submodule add , and then commiting, is there anything else you need to do?07:43
johnw what about linux in a VM?07:43
andres_: not really, no07:44
Garen joined07:44
andres_ johnw: so I should be able to pull from another clone of the repo, and it WOULD create the submodule directory, or do I have to do anything else in other clones?07:44
napster_123 sure i can try that... but i was looking for a no-weight way introducing git ... (we are on svn ... and i'm trying to convince then to use git)07:44
johnw after cloning, git submodule --init update07:45
giallu joined07:45
johnw napster_123: ah, I just did that convincing myself07:45
napster_123: i finally switched our house from svn->git last weekend07:45
napster_123 johnw, :)07:45
johnw i had the IT setup a dedicated Linux box for our version control07:45
dreiss joined07:46
johnw but all the users are Windows, except me07:46
napster_123 johnw, i've got one box approved as CI server but currently it doens't exist you see07:46
VVSiz I wonder if hosting a git repo on samba share would be a simple alternative...07:47
napster_123 johnw, when that box comes into existance only then i'll have an opportunity to host my git repo cleanly on a linux box07:47
VVSiz, yeh sure but git push wouldn't be available on that right ?07:48
johnw a VM is pretty clean too07:48
and it gives you a chance to play/prove07:48
VVSiz why not, if the share allows write access. the only question is that *safe*? since multiple users might try to commit concurrently, but I think git is smart enough to handle that.07:48
napster_123 johnw, i guess you'r correct i'll have to fallback to a vm after more couple of hours wasted... so why not do it now07:48
r11t_ left07:48
napster_123 johnw, vbox is more lightweight than vmware right ?07:49
VVSiz vbox works just great here07:49
johnw i don't know, I use vmware only07:49
VVSiz along with Ubuntu server VM07:49
johnw since I use VMware Server on some of our servers, it lets me just rsync over VMs that I want to deploy live07:49
WebDragon left07:49
napster_123 VVSiz, ok i'm going for vbox07:49
VVSiz vbox is definitely more lightweight and faster for me (and free) :)07:50
napster_123 ok now on windows i just need the latest msysgit and that's it right?07:50
johnw yeah07:50
i like TortoiseGit too07:50
it makes convincing much easier07:50
sitaram andres_: whatever you use as the URL, it should not affect anyone else's use of the same repo/subrepos, because they get to change their URLs at some point if they need to07:50
napster_123 no putty no nothing right?07:50
sitaram johnw: ??07:50
johnw no, it comes with OpenSSH07:50
ph^ left07:50
johnw sitaram: the RPM spec file for gitolite07:50
napster_123 johnw, alrighto07:50
andres_ sitaram: thanks07:50
roop_ joined07:51
roop left07:51
andres_ sitaram: on another note, trying to clone a repo, if I use the gitolite:repo.git shortcut, it works fine, but if I actually use the full form, I have to use git clone [email@hidden.address]07:51
sitaram: bug or feature?07:51
thiago_home andres_: what does "gitolite" expand to?07:53
WebDragon joined07:54
andres_ thiago_home: http://dpaste.com/169346/07:54
thiago_home I doubt it expands to that URL...07:55
christophsturm joined07:55
thiago_home andres_: are you sure you're not using url.<base>.insteadOf config?07:56
sitaram johnw: aah yes, I did reply to that didn't I?07:56
andres_: doc/607:56
johnw indeed you did07:56
i was just saying hi :)07:56
andres_ thiago_home: not sure what you mean07:57
sitaram johnw: oops! sorry :) I'm a little disoriented right now... hi!07:57
johnw i'm loving gitolite, thanks07:57
i get to confine our newbie interns to read-only branches07:57
and read-write branches they can deposit code to07:58
kkoehne joined07:58
jaysern joined07:58
andres_ sitaram: great, my ssh problems did not end yesterday....07:58
johnw that feature is actually what let me convince the CEO that we had to use Git07:58
patgodo joined07:58
sitaram johnw: :) you're welcome!07:59
MacGyverNL_MacGyverNL07:59
wolog joined07:59
sitaram johnw: wait wait... you're saying gitolite helped sell git? wow man, you made my day (if I understood correctly!)08:00
christophsturm left08:00
sitaram andres_: going back to your original question, using the full form bypasses gitolite completely, and you will find pushes blocked :)08:01
thiago_home left08:01
andres_ yup, read the doc :)08:01
ok, I'm scratching this...08:01
starting from the beginning...08:01
dj_tjerk joined08:01
andres_ this is absurd08:01
sitaram andres_: if this is getting too confusing, why don't you just use some other [workstation] account for the gitolite admin and make yourself just a normal user? Then you'd use the git@server:repo syntax08:01
magn3ts left08:02
sitaram andres_: and the special gitolite:repo syntax would be used only by that new user you created, to work on gitolite-admin repo exclusively08:02
andres_ sitaram: I'm looking at the sever now. I had started installing gitosis, on the same git account I use with gitolite. Could things be getting messed up?08:02
sitaram andres_: http://sitaramc.github.com/0-installing/9-gitolite-basics.html also has some (hopefully well written) explanation of all the ssh stuff08:02
mklappstuhl left08:03
sitaram andres_: it's been ages since I used gitosis but I guess if you don't get rid of it properly (I have a migration guide in my doc/ you know) then anyone pushing the gitosis-admin repo *can* possibly screw up the authkeys file08:03
Pupeno joined08:04
andres_ sitaram: yes, I saw that guide. I'm going to try to uninstall it and then start from scratch...08:04
sitaram: thanks for the other pointer08:04
sitaram you're welcome!08:06
mastro left08:07
jaysern left08:07
anxiolytic left08:08
steffkes joined08:09
rich97 If git says "On branch 0.2-page-management. Your branch and '0.2' have diverged." what is the bet way I can get the changes from 0.2 into 0.2-page-management?08:09
Bass10 left08:09
trebor_dki joined08:09
lucsky joined08:10
taufiqkh left08:10
magn3ts joined08:11
nmemon_ joined08:12
r11t joined08:13
anxiolytic joined08:15
j416 joined08:16
nmemon_ left08:16
napster_123 left08:16
Axius left08:17
stringo0 left08:19
palisv joined08:19
WebDragon left08:20
gebi left08:20
owen1 left08:21
hyperair left08:22
roll joined08:22
patgodo left08:22
rchavik left08:24
ph^ joined08:25
thiago_home joined08:25
mattayers joined08:25
christophsturm joined08:26
JonathanT joined08:28
maxthoursie rich97: if it's not published, a git rebase 0.2 should do08:31
rich97 maxthoursie: Thanks08:32
maxthoursie rich97: if it is published, git merge 0.2 would be better08:32
rich97 I'll rebase :)08:32
I just wanted to know the proper way, thanks08:32
magn3ts left08:34
darwin joined08:34
aatanasov joined08:40
munichlinux joined08:41
napster_123 joined08:41
hyperair joined08:42
palisv left08:44
nicoulaj joined08:44
thiago_home left08:45
doobry joined08:45
Hackykid joined08:45
erikvold left08:45
project2501a joined08:45
erikvold joined08:47
Enoptromancy joined08:48
isf_ left08:51
hachi left08:52
hachi joined08:52
tobiassjosten joined08:52
isf_ joined08:52
ChanServ set mode: +o08:53
peanut_bu left08:53
werdan7 set mode: -o08:53
munichlinux git fetch gitosis@xxx:xxx its ask for a password rather than keyphrase08:53
psoo left08:53
psoo joined08:54
r11t left08:54
christophsturm munichlinux: try ssh gitosis@xxx08:58
tbf joined08:59
project2501a left09:01
Enoptromancy left09:01
johnw left09:02
poseid joined09:02
JustDark joined09:03
darwin left09:04
munichlinux left09:05
domcat left09:07
Paraselene_ joined09:08
BearPerson joined09:08
PointMan joined09:09
shruggar joined09:10
munichlinux joined09:10
isf_ left09:11
GarethAdams|Home left09:11
BearPerson moo.09:11
isf_ joined09:11
JustDark left09:11
great_cogan joined09:12
elyob joined09:12
radarek joined09:13
roop joined09:13
segher joined09:14
roop_ left09:14
radarek left09:15
radarek joined09:15
hakunin joined09:15
sitaram clutches his heart... munichlinux attended a talk by him on git and gitolite and is using gitosis :)09:17
project2501a joined09:18
cedricv left09:20
f00li5hmoar-f00li5h09:22
moar-f00li5hf00li5h09:22
dj_tjerk left09:25
sylr left09:29
tvw joined09:31
themill joined09:32
dreiss left09:33
jelmer_ joined09:35
jelmer left09:36
g0bl1n joined09:36
project2501a left09:39
PointMan left09:42
hipe left09:42
Pieter oaeu09:42
hipe joined09:42
gitte joined09:43
tango_ left09:43
Plasmastar left09:44
PointMan joined09:44
ArdRigh left09:46
bauruine joined09:46
erikvold left09:48
jelmer_jelmer09:50
pharm joined09:51
fool__ joined09:51
fool__ left09:51
fool__ joined09:51
pharm Help!09:51
I have a branch I've been working on in two locations (different git repositories)09:51
pushing back & forth to keep them in sync.09:52
fool_ left09:52
pharm Now I seem to have ended up in a state where I have a file which is *different* in the two repos, even though the log is the same & the checksum is the same.09:52
This isn't supposed to be possible is it?09:52
I've done a complete git log on the two ends & all the checksums match09:55
and git diff shows no differences at either end09:55
yet I have differing files!09:55
Pewpewarrows joined09:59
engla joined10:00
locklace different how10:00
engla left10:00
engla joined10:00
pharm OK. I'm going to go tear my hair out somewhere else.10:01
daed left10:02
godsflaw left10:02
hipe left10:03
hipe joined10:03
SRabbelier left10:04
intripoon joined10:05
unregistered is "git checkout root_directory" equivalent to doing a "git reset --hard"?10:08
the former seems more intuitive10:09
Saur unregistered: No, they are not the same10:10
mbroeker joined10:10
tvw left10:11
unregistered what's the difference? i've been using the former on those rare occasions I wanted to throw away the changes in my working directory10:11
arekm left10:12
uau left10:12
unregistered Oh is it that. "reset --hard" will throw away the staged files too?10:12
or is there more to it than that?10:13
pharm left10:16
DavidKlein joined10:17
engla left10:18
wereHamster reset --hard has an implicet HEAD, checkout uses the index10:20
so if you have staged changes, the two commands would copy different things into your working tree10:21
orafu left10:27
orafu joined10:27
anxiolytic left10:32
ixti joined10:32
munichlinux left10:33
PointMan_ joined10:35
mklappstuhl joined10:35
andres_ left10:36
PointMan left10:37
corni joined10:37
PointMan_PointMan10:38
guyzmo joined10:40
guyzmo hi10:40
how can I make git ignore changes on one line in a file ? (I got versionned generated files that have a "Generated on XX/XX/XX" in them)10:41
unijunction left10:41
phoenix24 joined10:41
phoenix24 I've forked a project on github., and now i need to update my fork, with the changes made at the original master10:43
how can i do that ?10:43
ben_h there are two main ways, phoenix2410:43
wereHamster guyzmo: is that file generated from other files which are in the repository?10:43
ben_h you can merge the original, or rebase on it10:43
if you plan to contribute back, and you haven't already pushed your code, i'd suggest rebasing.10:44
merge is a traditional merge10:44
rebase means, take the commits you've made, and re-apply them onto the updated original10:44
Mandar joined10:45
phoenix24 ok10:45
ben_h i'd do a10:45
'git fetch remote_name'10:45
guyzmo wereHamster - well it's complicated, those files shouldn't be versionned, but for "comfort" the others don't want to generate them and want them versionned10:45
ben_h 'git rebase remote_name/master'10:45
guyzmo and the project manager is always right, even when he's wrong...10:45
ben_h lol10:45
Aides guyzmo: you can, for example, remove and readd that line with smudge/clean10:46
wereHamster guyzmo: well, to answer your question: no, not possible10:46
phoenix24 ok, thanks a lot ben_h10:46
wereHamster or not put that line into the generated fil10:47
guyzmo wereHamster - oh, ok, I'm pretty sure it's possible in svn with annotations :)10:47
BryanWB joined10:48
BryanWB i did git pull on my current branch and not happy w/ the results of the auto-merge10:49
how can I revert the merge commit and replay the merge w/ a different strategy?10:49
wereHamster git reset --hard ORIG_HEAD10:49
BryanWB wereHamster, is "ORIG_HEAD" what I should literally type ?10:50
wereHamster yes10:50
BryanWB wereHamster, tks10:50
what is the difference between ORIG_HEAD and HEAD?10:53
napster_123 left10:53
locklace HEAD is HEAD, ORIG_HEAD is what HEAD was before you did something dangerous and possibly stupid10:53
abstortedminds joined10:54
abstortedminds left10:54
bremner sitaram: the "pushurl problem" was me. I had two host aliases pointing to the same host10:54
napster_123 joined10:55
BryanWB locklace, tks10:55
j416 left10:55
unijunction joined10:56
Mandar left10:56
andres_ joined10:57
d0k joined11:00
Wicked left11:00
jspiros left11:01
tomekw joined11:02
nithin joined11:02
mklappstuhl left11:04
mklappstuhl joined11:04
timj_ joined11:05
sitaram bremner: in the ssh config file?11:05
bremner yeah, Ilari finally guessed that was the problem. Needless to say I feel pretty silly.11:06
especially since my instructions say to switch the gitolite alias back after the second install11:08
BryanWB left11:08
sitaram bremner: yeah this is why I'm beginning to hate ssh. Deceptively simple, but stray off the beaten path and you're screwed11:08
timja left11:09
Rhonda sitaram: I stumbled into a different issue this weekend: Had a Host * entry at the end, and gitolite puts itself at the end too, but because first match wins it didn't ever get there. :)11:10
bremner well, ssh -v gitolite could have found this pretty quick11:10
sitaram Rhonda: yeah basically ssh will trip if you're not careful. And often, even if you are11:10
Rhonda: that's why doc/6 is there... and it'll usually catch everything if you go through the whole doc :)11:11
_Vi left11:11
bremner is the gitolite ssh alias needed for anything during the install other than cloning gitolite-admin?11:11
sitaram no11:12
Rhonda: someone asked if I could put the gitolite entry at the *top* instead. I guess there's no risk, so I added it to todo11:12
Rhonda I would think that the alias isn't needed during the install because the install should set commandline options appropriately. :)11:12
rseifert left11:12
sitaram Rhonda: it's needed during the last step of the install, when easy-install does a "courtesy clone" of your admin repo. Not really *needed*, but still...11:13
squentin joined11:13
dpino left11:15
rgr joined11:17
s_edrik joined11:20
mklappstuhl left11:21
s_edrik how can I recall an old version of a git repository, I want to see if a feature worked in that revision or if I screwed up.11:21
mosno joined11:22
wereHamster s_edrik: git checkout <commit>11:22
kumbayo joined11:23
s_edrik hmm11:23
thanks11:24
=)11:24
alezandro left11:24
Rhonda sitaram: Hmm, have to check if that happened over here. :)11:25
j416 joined11:26
tatsuya joined11:31
Theravadan left11:32
dpino joined11:32
frogonwheels left11:32
PointMan left11:33
shruggar s_edrik, also look into "bisect"11:35
s_edrik will do'11:35
bronson left11:37
project2501a joined11:37
carolyn joined11:37
PointMan joined11:38
frogonwheels joined11:42
Textmode joined11:42
project2501a left11:44
jln_1 joined11:45
disappearedng help!11:46
Unifier/data.short/bakup/db.pickle |1751349 ++++++++++++++++++++++++++11:46
Yuuhi joined11:46
disappearedng I realize that I added a huge file into my repos11:46
and commited11:46
how do I remove from the repos?11:47
is git rm --cached what I want?11:47
poona joined11:47
shruggar disappearedng, have you pushed?11:48
disappearedng no11:48
not yet11:48
rolfb joined11:48
shruggar disappearedng, is it the last commit you made?11:48
disappearedng it is11:48
just commited11:48
shruggar git reset HEAD^11:48
wereHamster git rm --cached <file>; git commit --amend11:48
disappearedng ok there was 2 branch11:49
ZOL and master11:49
it was ZOL's last commit11:49
bauruine left11:49
disappearedng and I merged ZOL into master11:49
so both branch's last commit11:49
poona Hi. I am merging 2 branches which results in a conflict. The git tutorials says during a merge conflict we have three versions of the file. If I do a11:49
git show :1:my_file.c11:49
I get these errors - fatal: ambiguous argument ':2:util-error.h': unknown revision or path not in th11:49
e working tree.11:49
Use '--' to separate paths from revisions11:49
What am I doing wrong?11:49
wereHamster poona: does git status list that file as unmerged?11:50
poona Yes11:50
wereHamster: yes11:50
PointMan left11:50
parasti joined11:50
wereHamster disappearedng: then you will have to undo the merge, amend the commit and do the merge again11:50
poona: is 'util-error.h' the full path to the file?11:51
disappearedng how do I undo a merge11:51
git reset --hard HEAD^?11:51
wereHamster yes11:51
disappearedng git checkout master11:51
error: Untracked working tree file 'Unifier/data.short/bakup/db.pickle' would be overwritten by merge.11:51
wereHamster git reset Unifier/data.short/bakup/db.pickle; git checkout mastre11:52
poona wereHamster: Yes. I am inside the source directory, which holds the file util-error.h11:52
wereHamster poona: you need to use the full path in :2:<path>11:52
andre____ joined11:52
andre____ hello everyone11:52
disappearedng still wereHamster: error: Untracked working tree file 'Unifier/data.short/bakup/db.pickle' would be overwritten by merge.11:53
wereHamster disappearedng: sorry, git reset HEAD -- Unifier/data.short/bakup/db.pickle11:53
andre____ I'm having a problem with preserving a merge commit when rebasing11:53
Ryback_ joined11:53
poona wereHamster: Tried the full path. the same error11:53
disappearedng error: Untracked working tree file 'Unifier/data.short/bakup/db.pickle' would be overwritten by merge.11:54
still11:54
wereHamster andre____: I assume you are using rebase -p, right?11:54
mr_danie1 I use git for SCM, which is a great tool. But despite a system to track source code history and make code syncronisation between developers easy, I think also need some sort of todo-list management. Every day a developer has a new idea for a feature or proposal to change the architecture in a way, and do not those ideas to be lost. Every other develoepr should be able so see those ideaas and todos.11:54
wereHamster disappearedng: argh, just remove the file then11:54
andre____ wereHamster: correct. A minimal example can be found on http://github.com/awendt/git-task11:54
Textmode morning all11:54
mr_danie1 git is a greate tool for SCM, but is there also a great tool for 'idea and todo-list management'?11:54
andre____ I've tried `git rebase -i -p --onto master master^` which still shows the merge in the interactive listing11:55
disappearedng wereHamster: so now I am on master11:55
do I have to ammend again?11:55
andre____ but after the rebase, the merge commit is gone. it's a fast-forward11:55
this happens on 1.7.0.2 and 1.6.511:56
wereHamster disappearedng: well, amend that commit in which you added that big file11:56
poona wereHamster: Tried the full path in git show :1:<full_path_to_file>. Still get the same error11:57
Textmode mr_danie1: I usually use a wiki for that sort of thing.11:57
wereHamster andre____: it could be that rebase -p doesn't preserve fast-forward merges11:57
disappearedng is there a command in git that shows all the files being tracked ?11:57
wereHamster disappearedng: git ls-files11:57
andre____ wereHamster: bummer11:58
Textmode mr_danie1: though I suppose if you were really familiar with git's commands, and all the documents were related (conceptually), git would do fine.11:58
disappearedng thx11:58
Textmode mr_danie1: the only real issue is that git manages entire sets of files, rather than individual documents, depending on what you need that might actually be what you want.11:59
mr_danie1 you mean I should create a plain text file 'todo' it let it track by git Textmode ?12:00
andre____ wereHamster: is there any way I can preserve fast-forward merges when rebasing?12:00
locklace i use it for documents, and deal with that by putting unrelated docs in different branches12:00
Chillance joined12:00
wereHamster andre____: can you describe how you would like the history to look after the rebase? (maybe in a pastie using an ascii graph)?12:00
disappearedng ok cool thx man12:01
roll left12:01
jinzhu left12:02
Textmode mr_danie1: if you are just talking about adding some todo/changelogs (or similar-such) to the project file set, then have at it, thats common, and there won't be any problems, since the state of those documents is logically related to the state of the rest of the project, which is git's job to a t12:02
wereHamster poona: can you paste the output of git ls-files --stage?12:02
mr_danie1 that sounds reasonable Textmode12:03
Textmode mr_danie1: but if you are actually looking for versioned management of large collections of documentation and texts, you might be happier with one of the many wikis or document management systems out there.12:03
poona wereHamster: Yeah. I can see 3 versions for util-error.h12:04
100644 a9c048eaeb3640070f8990246957fdf79b96efd9 1 util-error.h12:04
100644 7184189fca5df1aec1b02ba693f20e2384d9d424 2 util-error.h12:04
100644 eab621eb44c2cddf0cd128af19d87f8d5399b833 3 util-error.h12:04
Textmode particularly if the documents are disparate12:04
froschi joined12:05
wereHamster poona: does git show :0:util-error.h work?12:05
jln_1 left12:05
kukks joined12:05
poona wereHamster: nope. the same error message - fatal: ambiguous argument ':0:util-error.h': unknown revision or path not in th12:06
e working tree.12:06
andre____ wereHamster: sure -- http://gist.github.com/32509612:06
DamienCassou joined12:07
DamienCassou hi12:07
wereHamster andre____: I'd say that's impossible12:07
_Vi joined12:07
ringlej joined12:07
andre____ wereHamster: But why oh why?12:08
wereHamster andre____: how shoud git know that the new parent of F should be M? You are rebasing T, not F...12:08
ringlej Is there a way to list local branch list with last access/modify time for each branch?12:08
solow joined12:10
solow Is it possible that my browser is no longer displaying changes on my localhost because of git?12:10
wereHamster ringlej: you could list the commit dates/times for each branch12:10
andre____ wereHamster: Well, git-rebase seems to know about the merges when listing the commits for -i12:11
alex____ joined12:13
alex____ hi! anybody is using nbgit? I only commit locally, my changes aren't pushing to the server.12:14
andre____ wereHamster: Sorry, of course I messed up the graph, I've updated it, please have another look at http://gist.github.com/32509612:14
wereHamster andre____: if you really want to find out if that is possible, you'll have to ask on the mailing list12:15
poona wereHamster: any tips that can help me with the git show?12:16
wereHamster poona: git --version?12:17
napster_123 is there any way i could clone a mercurial repository? i just want to init a git repo on my old mercurial repo but don't want to lose the history12:17
poona wereHamster: 1.5.512:17
locklace figures12:17
wereHamster napster_123: <contrib/hg-to-git>12:18
er, <HEAD:contrib/hg-to-git>12:18
Gitbot [git hg-to-git]: http://tinyurl.com/yflbdnf [tree]12:18
wereHamster poona: can you update? 1.5 is _really_ old12:18
poona wereHamster: too old a release to have this feature?12:18
wereHamster: okay. will update and try it12:18
thanks12:18
LRN joined12:18
dcampano left12:18
dcampano joined12:19
parigaudi joined12:19
andre____ wereHamster: Thanks, I will try the ML12:19
solow Is it possible that my browser is no longer displaying changes on my localhost because of git?12:21
napster_123 i tried fast-export and got this .... File "/usr/lib/pymodules/python2.6/mercurial/localrepo.py", line 2188, in instance12:23
return localrepository(ui, util.drop_scheme('file', path), create)12:23
alongwith four other errors12:23
DamienCassou hi12:23
I have a very simple (bare) repository. I also have a working copy. I did a git push from the working copy to the bare repository. When I do clone in a new directory, I can't see the change. Is that normal?12:24
alexmchale joined12:24
uau joined12:24
poona wereHamster: Tried the latest version 1.7.0.2. Still get the same error12:25
wereHamster: oh, sorry. It is working :) Thanks12:26
ringlej wereHamster: How do I show the commit date/time for a branch?12:28
warthog9 left12:30
zoniq joined12:30
solow anyone?12:30
wereHamster DamienCassou: maybe you pushed to a different branch than master12:31
solow: what does a browser have to do with git?12:31
solow Well that's what I'm asking you12:31
wereHamster ringlej: git log --pretty=tformat:"%cd" -1 master12:31
solow: nothign12:32
solow Changes are made, but the browser doesn't display them. So that's why I', asking IF git coul have anything to do with it. like, maybe it wants me to commit or something12:32
Okay thanks.12:32
tvw joined12:34
DamienCassou wereHamster: no, I checked12:34
wereHamster: I'm only using the master branch12:35
wereHamster DamienCassou: then use gitk --all to see where your branches are at (in both the original repo and the clone)12:35
rseifert joined12:36
ringlej wereHamster: thanks12:37
DamienCassou wereHamster: they are both at the top12:38
but one has 2 more lines on the top12:38
wereHamster 'at the top' ?12:38
DamienCassou (2 commits)12:38
wereHamster: they are both at the first line12:38
wereHamster they = who/what?12:39
priidu_ left12:39
Raska joined12:39
andre____ left12:39
marienz joined12:39
DamienCassou wereHamster: both gitk windows highlight the first commit line12:39
poona left12:39
DiNja^ joined12:40
frend joined12:40
MasterMav joined12:40
GLUS4E joined12:40
Camille11 joined12:40
mehere953 joined12:40
wereHamster and does the first line in both repos refer to the same commit?12:40
Anohail joined12:40
Black^Jack joined12:40
Lonely`Kid joined12:41
frend left12:41
MasterMav left12:41
GLUS4E left12:41
Camille11 left12:41
mehere953 left12:41
Black^Jack left12:41
Anohail left12:41
girl17 joined12:41
Intuneric joined12:41
girl17 left12:41
Danger^-^Girl joined12:41
mei^happy^ joined12:41
idoru joined12:41
DamienCassou no. In one, the first line refers to my last commit. The other window's first line is equal to the first window's third line12:41
Danger^-^Girl left12:41
majorcool joined12:41
majorcool left12:41
FARM4N joined12:41
FARM4N left12:41
Intuneric left12:42
sternocera joined12:42
wereHamster was the push successful?12:42
jelmer left12:43
DamienCassou wereHamster: yes it was12:44
Lonely`Kid left12:44
ringlej left12:44
wereHamster does the 'origin/master' branch in the first repo (the one you pushed from) point to the same commit as the 'master' branch?12:45
_Vi left12:45
DamienCassou wereHamster: how do I know that?12:45
_Vi joined12:46
wereHamster gitk --all12:46
nanoo joined12:46
aatanasov left12:47
DamienCassou wereHamster: I don't understand the question. Can you guide me a bit more please?12:48
Scotto_ joined12:48
steveire How do I find the common ancestor of branch1 and branch212:48
simplechat left12:48
DiNja^ left12:48
Scotto_ how do i drop changed in a file?12:48
wereHamster DamienCassou: git rev-parse master; git rev-parse origin/master (run that in the repo you pushed from and paste the output here)12:49
j416 steveire: mergebase12:49
wereHamster steveire: git merge-base12:49
ArjenL_ArjenL12:49
sergio_ joined12:49
wereHamster Scotto_: what do you mean by drop?12:49
steveire Thanks12:50
Scotto_ i added an empty file, and now its picking it up as an indexed change12:50
wereHamster Scotto_: git rm <file>12:50
DamienCassou git rev-parse origin/master12:50
origin/master12:50
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.12:50
j416 Scotto_: "git status" will give you information on how to add/remove files12:50
Scotto_ instead of committing the empty file or deleting it manually, i thought id be able to checkout the branhc after commiting everything12:50
j416 (from the index)12:50
Scotto_ im using git gui12:50
:D12:51
j416 after commit, do as wereHamster says12:51
Scotto_ you guys probably despise the gui12:51
wereHamster DamienCassou: how did you push to the repo?12:51
DamienCassou wereHamster: git push idurand master12:51
j416 Scotto_: I have hardly used the gui, but I think it is quite limited12:51
I sometimes use it for viewing history, but not more than that12:51
Scotto_ j416: seems like it12:51
DamienCassou wereHamster: idurand being a remote12:51
Scotto_ :(12:51
i guess i coul give it a try12:52
mattayers WOOP12:52
froschi left12:52
wereHamster DamienCassou: ah, then 'git rev-parse master; git rev-parse idurand/master'12:52
Scotto_ just nice to see the branches and the staged and indexed areas illustrated like that12:52
DamienCassou wereHamster: same hash12:52
Scotto_ i wish the gui would actually show the commands being used12:52
wereHamster DamienCassou: and 'git rev-parse origin/master' in the cloned repo?12:53
great_cogan left12:53
palisv joined12:53
DamienCassou wereHamster: different hash12:53
wereHamster DamienCassou: what happens when you run 'git fetch origin' in the cloned repo?12:54
munichlinux joined12:54
rgr left12:54
DamienCassou wereHamster: nothing is printed, and rev-parse doesn't change12:54
wereHamster DamienCassou: 'git ls-remote origin | grep master' in the cloned repo?12:55
DamienCassou wereHamster: same hash than with rev-parse and 'refs/heads/master'12:56
wereHamster DamienCassou: are you fetching over http?12:56
DamienCassou wereHamster: yes I am12:56
wereHamster DamienCassou: don't do that...12:56
DamienCassou wereHamster: pushing through ssh and fetching from http12:57
wereHamster use ssh:// or git://12:57
DamienCassou wereHamster: it's mandatory because some people don't have ssh access and nead read-only access to the repo12:57
wereHamster: s/nead/need/12:57
hugoxrosa joined12:57
wereHamster DamienCassou: you need to run git-update-server-info after each push12:58
Tureba joined12:58
wereHamster otherwise the new changes aren't visible to clients fetching via http12:58
take a look at the default post-receive hook12:58
sorry, post-update12:58
DamienCassou wereHamster: thank you very much. That was it. I will read some info about it, thank you thank you thank you12:59
hipe left12:59
Scotto_ any good gui aps that encourage command line use?12:59
vall joined13:00
hipe joined13:00
magn3ts joined13:00
vall ping13:00
PointMan joined13:00
vall hi, I would like to manage submodules in my git project13:02
JackWinter left13:02
vall on the root : git submodule status13:02
2ad51de0344ba395bfa52a847a1e5589658a0742 plop (heads/master)13:03
froschi joined13:03
jelmer joined13:03
vall but when I add files in submodules directory, I list no changes on subdirectory with git status (on root)13:03
niko joined13:03
mosno left13:04
JackWinter joined13:05
jaql left13:07
jasonn1234 joined13:08
alexmchale left13:08
auslander joined13:08
auslander left13:08
auslander joined13:08
alex____ left13:08
aspecto joined13:09
tobiassjosten left13:09
cenuij joined13:10
cenuij left13:10
cenuij joined13:10
parasti left13:10
unijunction left13:10
frogonwheels left13:11
DamienCassou left13:12
seathief joined13:13
rolfb vall, you have to treat the submodule as its own git repository13:14
Scotto_ what are changed but not updated files?13:14
jaql joined13:14
Scotto_ they show up when i do git status, but they dont show up in the gui at all13:15
j416 Scotto_: files tracked but not yet added to your index after you changed them13:15
Scotto_ how do i check the diff on an indvidual file, i have a feelign they werent changed by me, but by gitgui to make them all unix line enedings13:16
tobiassjosten joined13:16
wereHamster git diff -- <path>13:17
Scotto_ yep, nasty looking diff13:17
minus all lines, plus all lines13:17
:/13:17
are these files upposed to get committed?13:17
because the gui hadnt done so13:18
how do i commit line ending changes like this?13:19
vall rolfb: thank you13:19
Scotto_ should i just ignore these unstaged uncommited files?13:20
[a] left13:20
aziz left13:21
tstclair joined13:23
magn3ts left13:23
mr_danie1 left13:23
Scotto_ i just wanna correct this so i can move on, someone please help13:23
frogonwheels joined13:23
j416 Scotto_: I think you would benefit from reading a bit about git13:24
there is lots of really good documentation13:24
Scotto_: http://git-scm.com/documentation13:25
Scotto_ j416: that doesnt help me13:25
j416 did you try?13:25
hgimenez left13:25
unijunction joined13:25
Scotto_ seriously im not going to go digging through the docs on a single issue13:25
j416 ok13:25
Scotto_ ive used SVN before13:25
j416 so don't :)13:25
Scotto_ everythgins been going well so far13:25
and ive read the docs, but that doent mean im goign to retain them all in memory13:26
and it takes less time to go on without git than it does to dig through the docs, then so be it13:27
i just thought it would be good practice13:27
j416 Scotto_: you might want to check config option core.autocrlf / core.safecrlf13:27
Bass10 joined13:27
j416 (man git-config for info)13:27
Gitbot j416: the git-config manpage can be found at http://git.or.cz/man/git-config13:27
Scotto_ j416: i want it to change the line endings for me13:27
everythign should be in unix line endings13:27
j416 then that is your solution ^13:28
Scotto_ but... that dosnt change the fact that git status is showing me files in the unstaged/changed area that the gui does not13:28
i need to know why, and how to correct it13:28
so i can move on13:28
j416 not sure about that13:28
sorry13:28
ambuli what is the command to see the tags in local ?13:29
j416 ambuli: git tag13:29
Scotto_ im trying to use the gitgui most of the time and then use command line only when necessary13:29
j416: seems like git is only developed to be used by git experts13:29
not very intuitive at all13:30
j416 Scotto_: I think it's mainly developed to be used though command line13:30
through*13:30
I thought it was very intuitive. :)13:30
Scotto_ j416: j416 thats because youve been staring at the manual for weeks on end13:30
j416 I read the git book for a few hours13:31
then I experimented13:31
flazz joined13:31
locklace Scotto_: you can read http://book.git-scm.com/ in about half an hour13:31
Scotto_ each time i experiment, i run into new problems and issues13:31
flazz how can i backtick in git aliases?13:31
Scotto_ that no one can explain13:31
j416 Scotto_: that's kind of the purpose13:31
of experimenting13:31
Scotto_ no, i shouldnt run into unexplained problems13:31
things not covered by the docs13:31
j416 Scotto_: I don't handle files with CRLF, that's why I don't know13:31
dc joined13:31
frogonwheels left13:32
Scotto_ j416: a lot of people use windows to edit their files13:32
j416 sure13:32
Scotto_ j416: its not uncommon13:32
frogonwheels joined13:32
j416 that doesn't change the fact that I don't know anything about it, though :)13:32
I'm sure there are people more knowledgeable on this than me.13:33
wait and see :)13:33
Scotto_ j416: ive changed my IDE to default to unix line endings, just switched to a new IDE and it defaulted to CRLFs13:33
dcampano left13:33
Scotto_ its just frustrating...13:33
how do i stop it from showing the results of diff or status in vi?13:34
id rather it cat the results13:34
j416 Scotto_: you can set the default pager13:34
man git-config13:34
Gitbot j416: the git-config manpage can be found at http://git.or.cz/man/git-config13:34
Scotto_ j416: does this default change randomly by itself through versions?13:35
because i didnt change it, but it started doing this by itself recently13:35
j416 randomly? no13:35
but things change, of course.13:35
Scotto_ thats annoying13:35
j416 I don't know if that particular thing has changed13:35
you can just set it in config13:35
frogonwheels left13:36
Scotto_ you make the config sound like a gui13:36
j416 Scotto_: git config core.pager cat13:36
run that and you're done13:36
Scotto_ j416: so, how do you remember all the settings?13:36
j416 Scotto_: I don't13:36
Scotto_: man git-config13:36
Gitbot Scotto_: the git-config manpage can be found at http://git.or.cz/man/git-config13:36
tango_ joined13:36
Scotto_ j416: then how do you know what to enter in the config13:37
j416 read what I wrote13:37
^13:37
Scotto_ j416: so each time you setup a new repo, you go searching through the manpages?13:37
j416 no13:37
hipe left13:37
j416 I do it when I need to change some setting13:37
hipe joined13:38
hipe left13:38
frogonwheels joined13:38
hipe joined13:38
palisv left13:38
hipe left13:39
flaguy48 joined13:40
aspecto left13:40
priidu_ joined13:40
hipe joined13:40
seathief left13:40
cedricv joined13:41
Hackykid left13:41
Scotto_ j416: now using cat i dont get color coded output13:41
j416: before it started loading in the gui i would get color coded cat :(13:42
Hackykid joined13:42
palisv joined13:43
sternocera Hi. How can I create a git branch from within Qt creator, and which that to my working copy? Thanks.13:44
j416 Scotto_: check the man page, everything is in there13:44
Scotto_: try: git config color.ui auto13:45
csiegert joined13:45
aziz joined13:45
nicoulaj left13:47
hipe_ joined13:48
joelmoss joined13:49
joelmoss hi all13:49
si just upgraded to 1.7.0.213:49
trying to bare clone a repo over http and getting this error:13:49
fatal: Unable to find remote helper for 'http'13:49
anyone have any ideas?13:50
i know the smart-http protocal is all new13:50
but backwards compat is kept ain't it?13:50
anyone?13:50
Rhonda Did you run git update-server-info on the server part?13:50
hipe left13:51
joelmoss ??13:51
i dont have access to repo on the seerver13:51
douilspee how can i make git diff not to list file permission change and binary change ?13:52
Rhonda joelmoss: Did git clone work from there prior to your git upgrade?13:52
jMyles So I've been trying to get into Git for the past week or so, and I'm starting to feel pretty good about it. A nagging question I have, though, is - how do I test out a development branch on a server? Can I have two branches correspond to two directories of files and look at each? What's the typical practice here?13:52
joelmoss Rhonda: no, thats why I upgraded13:52
seems curl wasn't compiled in13:52
so thought I'd upgrade while doing the recompile13:52
Rhonda joelmoss: I rather expect the http exposure there never did run git update-server-info13:53
And so it's no regression if it didn't work before, so your statement about "backwards compat is kept" isn't really called for. It is backwards compat in the way that it still doesn't work. ;)13:53
locklace jMyles: what are you doing, web stuff?13:54
jMyles locklace: Yeah, for now.13:54
psankar left13:54
joelmoss Rhonda: so why doesn't iit wortk?13:54
Rhonda jMyles: You can just git clone again, or work in a git branch until you are happy to git merge back into master.13:54
locklace jMyles: good idea to have both a production and a dev/staging server. then you have two clones, each server pointing to one13:54
Rhonda joelmoss: … I thought I mentioned that twice already? :)13:55
joelmoss ?13:55
Rhonda: sorry, ya lost me13:55
Rhonda joelmoss: "git update-server-info"13:55
joelmoss yeah but that has to run on the repo that I'm cloning from right?13:56
which I don't have access to13:56
Rhonda Exactly.13:56
Then you can't clone from there.13:56
joelmoss i only have read only access to it13:56
not over http?13:56
Rhonda No.13:56
joelmoss hmm13:57
mydog2 left13:57
joelmoss so git update-server-info is needed to be run on all repos when upgrading to 1.7?13:57
oh no, I see13:57
just for http13:58
Rhonda No, it's needed to be run on all repos, no matter what version.13:58
jMyles Rhonda, locklace: Thanks - I'm not quite getting it, though. So, I have LAMP server. I have /var/www/project with the master branch. Then I'll clone it into /var/www/devel or something? Then have the team push to devel?13:58
Rhonda Yes, for dumb http13:58
jMyles: http://nvie.com/git-model - that gives a nice workflow model for git13:59
locklace jMyles: have one "central" repo that acts as master, then create two clones of it, one for each web server, and point each server at its clone13:59
Rhonda jMyles: And … erm, you don't push to non-bares.13:59
nicoulaj joined13:59
jMyles Rhonda: I don't know what "non-bares" means. I'm checking out your link - thank you very much. :-)14:00
Rhonda There are hacks to be able to do so but that requires discipline and no changes in those non-bares at all to which you want to push.14:00
csiegert left14:00
locklace jMyles: central is the master repo for all your stuff, and has branches for dev, staging, production, whatever you need. the clones pull (or fetch+reset) from central as needed, and have the appropriate branch checked out14:00
mydog2 joined14:00
Rhonda jMyles: In principle: If you push to the git repository in which someone else has a working copy and is working in there are many bad things happening, including that god eats a kitten.14:01
Hackykid left14:01
joelmoss Rhonda: cheers14:01
Rhonda jMyles: A bare clone is one without a working copy and is the only place one pushes to.14:01
flazz say i have two projects, A & B. i want to move files from B into A and deprecate B, but i want the history of those. how can i do it?14:01
malumalu joined14:02
project2501a joined14:02
jY i have 1 file that didn't make it into a tag.. is there anyway to put that file into the tag?14:02
Rhonda flazz: You git merge B into A? :)14:02
douilspee is there any git diff option like : show only file with text change ?14:02
locklace jY: a tag is just a pointer to a commit14:02
flazz Rhonda: i can merge across repositories?14:02
joelmoss Rhonda: so hold on tho... I can git clone that very same repo on another machine fine14:02
munichpython joined14:03
bushwakko joined14:03
joelmoss so that doesnt make sense14:03
bushwakko hey, how can I do git checkout --ours on all unmerged files?14:03
I have a ton of files that are just modified and/or merged, and then I have another ton that has conflicts. In these conflicts I wish to keep mine only14:04
rgr joined14:05
dpino left14:05
LaFi joined14:06
munichlinux left14:06
_Vi left14:06
bushwakko left14:06
bushwakko joined14:06
bushwakko whops...14:07
flaguy48 left14:07
bushwakko left14:07
bushwakko joined14:07
bushwakko Is --ours not my fixes, because I did a --theirs, and got my changes instead of the incoming ones...14:08
rseifert left14:09
ben_alman left14:09
joelmoss left14:09
rseifert joined14:10
drubies joined14:12
roop left14:12
dforsten joined14:14
Scotto_ why is the git gui showing different staged files than what git status shows?14:16
this is absolutely confusing14:16
ok so one thing i need to know before i go further, should i just stop using the gui all together?14:20
mklappstuhl joined14:20
ben_alman joined14:20
sternocera Hi. When I create a new branch with git, must I create a new physical, working copy on the filesystem? Thanks14:23
_rane no14:24
git branch <branchname>14:24
fr0sty-away Scotto_: can you elaborate on your troubles?14:25
dforsten Is it possible to use git-svn to merge two svn branches bi-directionally?14:26
patthoyts joined14:26
Scotto_ fr0sty-away: not really, i resolved them so i cant go back and give you the play by play14:26
ToreadorVampire joined14:26
Scotto_ fr0sty-away: had line ending problems, but gitgui was showing different files in the unstaged changes area than what git status was showing14:27
fr0sty-away: they showed up in git status but not in the git gui14:27
mei^happy^ left14:27
Alex left14:28
Alex joined14:28
cedricv left14:28
t0rc joined14:28
sternocera left14:28
Alex left14:29
JackWinter left14:29
jony left14:29
Axius joined14:29
JackWinter joined14:30
Alex joined14:31
_Vi joined14:31
anxiolytic joined14:31
ToreadorVampire Bugger :( I think I may have shot myself in the foot with git ... it uses some case-sensitive filenames ... I archived all of my git repos' up to a FAT32 volume for rebuilding my server ... now I have rebuilt it I am getting "does not appear to be a git repository" messages all over the place as I try to clone those backed-up repositories :(14:31
ToreadorVampire cries14:31
frogonwheels left14:31
LaFi left14:32
ToreadorVampire Ohwait, maybe the only case-sensitive filename in each repos is HEAD ??!!14:32
(I mean, uppercase filename)14:32
jfkw joined14:33
ToreadorVampire In which case it's fairly trivial to batch-rename those with `find` after I move the repositories back off of the FAT32 volume onto my ext3 volume14:33
Phew, that's good news at least14:33
Axius left14:34
ToreadorVampire tries it on one repos, is able to clone it again, cheers and thanks his lucky stars :D14:34
maxthoursie_ joined14:35
maxthoursie left14:35
maxthoursie_maxthoursie14:35
ToreadorVampire Yay!14:36
ToreadorVampire left14:36
napster_123 left14:37
LiamH1 joined14:37
AkumaStreak left14:38
poseid left14:38
fr0sty is happy, but feels compelled to point out that it was FAT32, not git that did the foot shooting.14:39
cedricv joined14:39
maxthoursie_ joined14:40
maxthoursie left14:40
maxthoursie_maxthoursie14:40
mm_work joined14:42
mm_work left14:42
mm_work joined14:42
bushwakko hey, I have a gazillion unmerged that I want to do git checkout --theirs on14:43
how can I do that14:43
is it possible to get an interactive merge like in gentoo's dispatch-conf=?14:43
zoniq left14:44
spearce joined14:44
zoniq joined14:45
wereHamster git ls-files -u | xargs git checkout --theirs ?14:45
alezandro joined14:46
lack wereHamster: Doesn't 'git ls-files -u' have a bunch of cruft that will screw that up? I think you need 'git ls-files -u | cut -f 1 | sort -u' or somesuch...14:46
bushwakko -f 2 seems to work14:46
anxiolytic left14:47
lack bushwakko: That's the one.14:47
mcdebugger left14:47
malumalu left14:47
mrchrisadams_ joined14:47
mattayers_ joined14:50
cannonball joined14:51
mattayers left14:53
mattayers_mattayers14:53
maxthoursie left14:54
alezandro left14:54
tomekw left14:55
alezandro joined14:55
sagsousuke joined14:56
maxthoursie joined14:57
Mezner joined14:57
poseid joined14:59
jMyles OK, so for a web development purpose, let's say I want two main branches - master (production) and devel (development). I want both of them to be live on the web server. How can I accomplish this?15:00
mithro left15:02
bushwakko I'm really getting myself deeper and deeper into crap here now15:03
at one time I took an git svn rebase, and I merged it wrong15:04
but I can't seem to get it back15:04
I need to get back in the state before that rebase, so I can redo it15:05
hipe_ left15:05
hipe joined15:06
GyrosGeier is the rebase still active?15:06
oh wait15:06
git svn rebase15:06
no idea then15:06
locklace jMyles: i told you above15:07
jMyles locklace: I took a look at the article, and it made good sense, but in practical terms, I'm still not sure what to do.15:07
Mezner left15:08
locklace jMyles: i'm not the one who gave you that link. it's good, but only marginally relevant to you15:09
bushwakko I cannot get to the point where the index is dirty and I haven't commited15:09
engla joined15:09
engla left15:09
engla joined15:09
bushwakko if I do git checkout <id> I get before15:09
and the other id is after15:09
I need to get to unmerged index part15:09
SpookyET joined15:09
EvanR-work bushwakko: git reset --hard <ref>15:09
Axius joined15:09
bushwakko ok15:09
*crosses fingers*15:09
SpookyET left15:10
alezandro left15:10
EvanR-work your working tree and index will be equal to <ref>15:10
jMyles locklace: Ahh, yes, my bad. OK, well I understand the notion of "central" as a master repo with the respective purposes for each of the other repos, but I still don't understand how. I can make a production and dev branch easily enough, but I don't understand how to make them both live on my server so we can look at dev as we progress.15:10
alester joined15:10
hipe left15:10
cbreak jMyles: you want two working directories?15:10
locklace jMyles: you're going to create two clones of the central repo with git clone, one for each web server15:11
cbreak then just create two repositories, each checking out one branch15:11
lack How do I (commandline) get a list of commits whose subjects match a specific string or regex?15:11
bushwakko EvanR-work: the index is always clean...15:11
locklace jMyles: (or each project, if you don't actually have separate servers)15:11
EvanR-work bushwakko: yes15:11
cbreak lack: man git-log15:11
Gitbot lack: the git-log manpage can be found at http://git.or.cz/man/git-log15:11
cbreak look for --grep15:11
EvanR-work bushwakko: what do you want it to have15:11
alezandro joined15:11
bushwakko I want to get to an uncommited part of it15:11
EvanR-work which part15:12
bushwakko whatever I do I get the a commited state, I want to get the uncommited states15:12
so I can start from there15:12
trebor_dki hello, are there emacs-git users here, who can give me some advices on vc-git.el and git.el?15:12
jMyles locklace: OK, I get that, but... and I know this is stupid noob stuff, but when I clone the directory with git clone and then run git branch, I only see one branch. For example, if I clone my production directory into project-devel, I want that branch to be called devel. Then when I run git branch, I want to see master and devel, no?15:12
EvanR-work bushwakko: git reset --hard to what you want the working tree to be. then git reset --mixed to where you want HEAD to be15:13
themill left15:13
bushwakko EvanR-work: sorry, I don't really know what that means15:13
froschi left15:13
themill joined15:13
jrmuizel joined15:13
bushwakko can I undo git reset --hard btw?15:14
locklace jMyles: the best working model here is to actually have 3+n repos, where n is the number of boxes you want to actually do development on15:14
cbreak sometimes15:14
EvanR-work bushwakko: yes15:14
cbreak git reset can kill changes that are not commited15:14
EvanR-work as long as where ever you want to reset too is in some object, either stashed15:14
locklace jMyles: the 3 repos are central, prod, and devel. central is bare, and is the hub repo that all the other repos are spokes of15:14
cbreak those are gone for ever, mostly15:14
bushwakko I have commited lots15:14
EvanR-work or in the reflog15:15
bushwakko I just did reset --hard back to an earlier commit15:15
EvanR-work to go forward, look in git reflog15:15
locklace jMyles: prod, devel, and the working repos are just non-bare clones of central15:15
dannas joined15:15
j416_ joined15:16
bushwakko this started when I did git commit instead of git rebase --continue in the middle of a rebase15:16
locklace jMyles: to make changes, you develop on one of the n working boxes, then push to central. then you get the latest versions on the prod and devel clones with fetch+reset15:16
gergap joined15:16
gergap left15:16
EvanR-work bushwakko: tricky, anyway all your commits should still but in git reflog, so git reset --hard to that one15:16
be in *15:16
cbreak have you considered doing git rebase --abort?15:16
locklace jMyles: since all repos are clones of central, all branches are available in each. the "prod" clone has the prod branch checked out, and the "devel" clone has the devel branch checked out15:17
bushwakko so basically what I ideally would like to do is get back to the dirty index of the rebase before i did git commit15:17
EvanR-work you need to restart the rebase15:17
rich97 left15:17
lhz joined15:17
xperience joined15:17
EvanR-work to get individual changes to files before committing, do git checkout <ref> -- file1 file2 etc15:18
mithro joined15:18
EvanR-work where ref is some nuts commit you made during rebase, i suppose15:18
j416 left15:18
dc left15:19
Axius left15:20
bushwakko I always seem to get to a commited state though... I want to checkout right before a commit15:20
my index is always clean whatever I do right now15:21
EvanR-work that does not make sense15:21
mrchrisadams_ is ssh forwarding a specific option you need to swtich on with gitosis?15:21
jMyles left15:21
wereHamster gitosis doesn't require ssh forwarding15:22
EvanR-work bushwakko: if you have commit A, and commit B. and you want to be 'on' commit A, but have changes in your working tree from commit B, do git reset --hard A, then git reset --mixed B15:22
(where A is B's parent)15:22
mssm joined15:22
phoenix24 left15:23
mattayers left15:23
EvanR-work bushwakko: --hard, --soft, and --mixed determine whether your HEAD, index, and working tree are modified. man git-reset15:24
zoniq left15:24
Gitbot bushwakko: the git-reset manpage can be found at http://git.or.cz/man/git-reset15:24
cbreak if I was you, I'd go back to where I was before the whole problem started15:25
zoniq joined15:25
cbreak nothing beats being at a known working state15:25
camonz joined15:25
tbf left15:25
rgr left15:25
EvanR-work things are peachy if no one has pulled your broken changes ;)15:25
bushwakko cbreak, that is what I'15:26
m trying to accomplish15:26
but whatever I do it seems like the rebase is mixed in there somehow15:26
EvanR-work did you do git rebase --abort15:26
cbreak did you abort the rebase as I told you?15:26
marienz left15:26
bronson joined15:26
bushwakko I've been jumping around so much that this rebase is long fogotten15:27
aschueler joined15:27
bauruine joined15:27
EvanR-work do you have .git/rebase-apply15:27
if so, its not forgotten15:27
bushwakko nope15:27
TeckniX joined15:28
EvanR-work its possible your rebase succeeded15:28
bushwakko most likely15:28
parasti joined15:28
EvanR-work then you need to reset to the original branch somewhere15:28
bushwakko I think it succeeded somehow when I did that commit15:28
EvanR-work unless youre ok with it15:28
cbreak do a git reflog > backupreflog15:29
and maybe look at the output too :)15:29
RobertMeta left15:29
disappearedng left15:29
cbreak with a bit of guessing you should find a time where you were before the rebase started15:29
you can reset to that if you want15:29
EvanR-work fun with git-rebase15:30
bushwakko I've been trying to do that15:30
I know what i commited before the rebase, but doing reset --hard to that still contains stuff that I know came with the rebase15:30
EvanR-work that doesnt seem possible, they would have to have different hashes15:31
palisv left15:31
bushwakko http://pastebin.ca/182857915:32
joeconyers joined15:32
EvanR-work i see a lot of checkouts15:32
bushwakko 3031cc0 HEAD@{28}: commit: cleaned up a gazillion conflicts <-- this is the fatal commit i did _during_ the rebase15:33
tasslehoff left15:33
reprore joined15:33
EvanR-work so dont use that one15:33
you seem to have been rebasing non stop15:34
bushwakko I would like to get back to that runner.args state15:34
EvanR-work that is after some rebase, are you sure15:35
bushwakko I think so15:35
Mezner joined15:35
rseifert left15:36
bushwakko I'm using svn, so git svn rebase is the way to get updates from svn15:36
EvanR-work if you reset to 27fa3f3 and the unwanted changes are there, then i think you shouldnt be sure15:36
dcampano joined15:36
bushwakko which reset should I do there then?15:36
EvanR-work hard15:36
well, i just noticed there are two runner.args commits15:37
which one is which15:37
bushwakko that seems better15:37
27fa3f3 <-- this ones15:37
the one I just check out15:37
I'm currently in (no branch) atm though15:38
but this seems like a place I'd like to start15:38
drubies left15:39
EvanR-work no branch probably because of the checkouts you did15:39
bushwakko no i did git checkout -b smsfix15:39
if I can fix this one, I can delete the rest15:40
EvanR-work try checking out master or smsfix and then resetting15:40
_Vi left15:40
bushwakko the big question now is if I can do a rebase on this one, to try to merge in the other changes (it's during this merge i did a commit earlier)15:41
j416_j41615:41
yatiohi joined15:42
bushwakko ahh15:42
I'm back15:42
git ls-files -u|cut -f 2|uniq| git checkout --theirs15:43
Carneus joined15:43
alezandro left15:43
bushwakko this is what I did earlier15:43
trochala left15:43
bushwakko but now I got: --ours/--theirs is incompatible with switching branches.15:43
Carneus how do i fast forward to most recent commit?15:43
avar joined15:44
alezandro joined15:44
locklace Carneus: git checkout <branch>15:44
EvanR-work fast forward merge from upstream?15:44
bushwakko left15:45
avar When I run `git foo` e.g. `git add` can I somehow see what git-add binary it uses? I'm bisecting git itself and I think my compile dir is being poisoned by my system dirs15:45
bushwakko joined15:45
Carneus locklace, thank you15:45
bushwakko whops, messing up my shortcut keys here15:45
disappearedng joined15:45
lavamind joined15:45
lavamind hello15:46
bushwakko why can't I do --theirs/--ours now?15:46
I would think branch stuff would be irrelevant there?15:47
lamont left15:47
bushwakko I just want to either choose the file from the branch i'm in, or from the rebase15:47
lavamind I'm trying to work out a pretty big merge, big but essentielly only a fast-forward merge: my tree has a few extra files. but for some reason lots of files are not able to auto-merge properly, even though I've never touched them in my tree, so I'm trying to understand why it's happening15:48
jmcantrell joined15:48
EvanR-work bushwakko: git checkout <ref> -- filename15:49
drizzd lavamind: does "git diff --name-status ...upstream" show any changes to these files?15:49
m104 left15:49
lamont joined15:50
bushwakko EvanR-work: which ref is mine and which is theirs?15:50
drizzd lavamind: oops, that should have been upstream...15:50
"git diff --name-status upstream..."15:50
EvanR-work bushwakko: i dont know? pay attention!15:50
lavamind drizzd: by "upstream..." you mean something like "origin/MOODLE_19_STABLE...", right15:51
EvanR-work this rebase thing sounds awful15:51
drizzd lavamind: Yes, I mean the branch you're merging15:51
lavamind it doesn't show anything15:51
drizzd ok, what about renames? have the files you were editing been renamed upstream?15:52
lavamind drizzd: wait I was on the wrong checkout, sorry15:52
drizzd the merge should mention that before spilling out auto-merge errors15:52
tedoc2000 joined15:52
aryounce joined15:52
drizzd s/auto-merge errors/merge failures/15:52
bushwakko I'm trying something different now. I'm trying to merge master into this branch. master seems to be rebased correctly15:52
EvanR-work eww15:52
i would only merge master if its a fast forward15:53
alezandro left15:53
lavamind drizzd: ok it shows lots of files either M or A, and my example, "version.php" is "M"15:53
drizzd lavamind: ok, so the syntax upstream... basically tells you what changed since your branch diverged from upstream15:54
lucid_ joined15:54
rolfb left15:54
drizzd so IOW, version.php _was_ modified in your branch wrt. upstream15:54
you should see the same changes in "git log --name-status upstream..."15:54
oops, "git log --name-status upstream.." (only two dots this time, this is a little strange)15:55
lavamind ok I think I know why this is happening15:55
I did a squash commit last time15:55
lucid left15:55
owen1 joined15:56
EvanR-work bushwakko: you sure you dont want to merge the other way15:56
lavamind so the detailed commit history is lost, and I suppse that's what would otherwise resolve the conflict15:56
drizzd lavamind: exactly15:56
bushwakko seems to be working... only problem I'm having now is that : "git ls-files -u|cut -f 2|uniq| xargs git checkout --ours" isn't working15:57
drizzd you can replace the squashed commit by a real merge and then rebase onto that15:57
bushwakko EvanR-work: what's the drawbacks of merging master into my branch?15:57
EvanR-work it makes the history nuts15:57
lavamind drizzd: I've never done a rebase so I'll have to read up on that15:58
EvanR-work but i guess that might be preferrable15:58
drizzd replace as in, create a new branch from squashed-merge-commit^, then merge the same version you merged in the squashed commit (not sure how you can find out which one that was), then maybe check if the result is the same as squashed-merge-commit.15:58
EvanR-work especially if youre just going to merge that branch into master afterward, just do it that way first and fast forward15:58
Carneus is there a way to throw away last commit/merge15:58
EvanR-work git reset --hard15:59
ph^ left15:59
drizzd lavamind: does that make sense so far?15:59
lavamind drizzd: I think that might be too complicated from my needs, the squashed commit is the last commit in my log for the troubled branch16:00
drizzd lavamind: oh16:00
lavamind so I suppose I can just reset --hard and re-merge the new upstream stuff16:00
drizzd lavamind: yep16:00
but it's still strange that the merge would fail in this case, since the merged files should be the same, even though you squashed the merge16:01
radarek left16:01
lavamind what I don't like though about not using squashed commit is that upstream is very busy and my local-only commits get quickly buried16:01
drizzd (unless you merged an old state of the other branch)16:01
lavamind: git log --first-parent only shows your commits16:02
lavamind drizzd: well there's about 500 commits there, and most changes are auto-merged OK, only 20-or so files have problems16:02
simNIX left16:02
locklace lavamind: you probably want to be pull --rebase-ing instead of merging16:02
bushwakko when I've solved conflicts during a git merge, what is the proper thing to do, it's a git commit -a -m "something" then?16:03
drizzd bushwakko: you probably don't want to overwrite the commit message with -m16:03
EvanR-work yes you must git commit your fixes to the merge conflicts16:04
git commit -a16:04
lavamind git-log --first-parent shows the same commits as simple git log, is that what pull --rebase would affect ?16:04
disappearedng left16:05
bushwakko PHEW! seems to be fixed now! We're using git on top of svn, just because some of us like the git toolkit better. but god is it a hassle sometimes :)16:05
chaitanya joined16:05
drizzd lavamind: no, nothing to do with rebase. but if you did not do any real merges, then --first-parent has no effect16:05
locklace lavamind: pull --rebase will push your local changes onto the stack, update the branch with all the new upstream commits, then pop the stack and reapply your changes on top16:05
drizzd lavamind: it hides the commits from the merged branch16:06
locklace lavamind: iow, after the pull you will again see all of your changes first in the output of git log16:06
EvanR-work bushwakko: yeah, that sounds terrible16:07
drizzd lavamind: yeah, rebase seems to be what you want16:07
EvanR-work why not just use git normally16:07
martoche joined16:07
jMyles joined16:07
_Vi joined16:07
lavamind drizzd, locklace: okay, thanks for the info, I will try and undo my squasehd commits taht prevent a clean merge, and try using pull --rebase to see how that works16:08
munichpython left16:08
psoo left16:08
bushwakko My co-workers doesn't see the point in using git over svn, and think git isn't right for the task anyway because it isn't centralized16:09
but I mean, we could all work towards a central git couldn't we?16:09
EvanR-work you can pretend it is16:09
Textmode bushwakko: aye, thats a common layout.16:09
locklace git can do centralized workflows just fine16:09
EvanR-work designate one of the repos as 'the central repo'16:09
camonz left16:10
EvanR-work just a matter of marketting ;)16:10
wolog_ joined16:10
martoche I've removed a bunch of files from a repo with filter-branch, then forced pushed to origin master. But when another clone of the repo makes a push, it pushes back all the files I wanted to delete. How do I tell all the clones of the repo that they should take into account the filter-branch?16:10
Textmode and the princible advantage of git over svn is *extremely* cheap branching, and local branching. which, imho, trumps svn any day of the week.16:10
sea-gull joined16:11
wolog left16:11
drizzd martoche: you mean a forced push?16:11
martoche yes16:11
locklace martoche: fetch and reset --hard from the clones would be good16:11
EricInBNE left16:11
EvanR-work git is faster, i heard16:11
alezandro joined16:12
rduplain joined16:12
drizzd martoche: basically, you need to rebase the local changes in all your clones, or discard them16:12
_Vi left16:12
Textmode EvanR-work: having recently been forced to checkout some large svn repos, I second that. that took forever...16:13
munichpython joined16:13
martoche ok, I'll try to rebase16:13
chaitanya left16:13
martoche and is there a way to prevent anybody from pushing back all those files I've removed? can I blacklist some filenames?16:13
EvanR-work yes, you disable ssh for any user who is an idiot16:14
aryouncearyounce|afk16:14
EvanR-work only allow trusted people to push to the main repo16:14
martoche EvanR-work: :)16:14
aryounce|afk left16:14
zoniq left16:14
EvanR-work sounds like you are about to recover from upstream rebase, thats a bigger issue16:14
sea-gull left16:15
drizzd martoche: educate people not to force pushes16:15
trebor_dki left16:15
zoniq joined16:15
drizzd (mindlessly)16:15
martoche drizzd: they're not doing it, if you pull from origin master, then push a change, the deleted files are pushed back16:16
without --force16:16
drizzd martoche: I can't see how that could happen16:16
ah, wait, ok...16:17
they're merging the rebased branch16:17
palisv joined16:17
drizzd that's awful16:17
martoche oh, ok, it's when they merge that everything breaks16:17
EvanR-work yes.16:17
locklace that's what you get for using filter-branch on a shared repo16:17
patrik_ joined16:17
EvanR-work 'recovering from upstream rebase'16:17
patrik_ left16:18
martoche so the clean way to do it is a rebase?16:18
EvanR-work man git-rebase16:18
Gitbot EvanR-work: the git-rebase manpage can be found at http://git.or.cz/man/git-rebase16:18
EvanR-work martoche: there is no clean way to rebase something everyone is sharing16:18
drizzd martoche: yeah, and a rebase --onto at that16:18
webchick joined16:19
EvanR-work i like the solution 'revert commit what you did and admit you screwed up'16:19
avar left16:20
giallu left16:21
martoche drizzd: EvanR-work: locklace: thanks for your help16:22
drizzd I have to say, git doesn't handle this case very graciously. But I'm not sure how to improve it. Would require some kind of "rebase tracking."16:23
anxiolytic joined16:23
disappearedng joined16:23
patthoyts left16:23
froschi joined16:24
EvanR-work git does not make history rewriting easy16:24
drizzd or maybe at least a warning that you're merging a branch without a common ancestor, which is an unusual thing to do and in this case certainly the wrong thing to do.16:24
dannas left16:24
EvanR-work ah you mean you doesnt give enough warning signs16:24
drizzd there is no warning, and there is no automatic way to recover16:24
sure I don't want someone else to silently rewrite my history16:25
EvanR-work clearly rebasing on a regular basis is the wrong thing to do16:25
drizzd but in this case I'd probably want to trust the maintainer and let git "do the right thing"16:25
(i.e., rebasing all branches onto the rewritten history)16:25
dannas joined16:26
ph^ joined16:26
EvanR-work so a giant warning next to a config option 'allow automatic upstream rebasing'16:26
priidu_ left16:26
drizzd or a very long command line option like, "git pull --rebase-with-magic"16:26
yevlempy joined16:27
yatiohi left16:28
ringlej joined16:29
voxpelli left16:29
ringlej how do I abort a conflicted merge after 'git merge master'?16:29
mw joined16:30
EvanR-work git reset --hard16:30
ringlej thanks16:30
drizzd newer git has git reset --merge for that16:31
although I'm not sure what it does, it's probably safer than --hard16:31
tbf joined16:31
voxpelli joined16:31
EvanR-work HEAD is changed during a failed merge?16:31
:S16:31
drizzd EvanR-work: no, why?16:32
EvanR-work so --hard should work?16:32
drizzd yes, it definitely works16:32
LiamH1 left16:32
drizzd actually, I'm beginning to think that --merge is _not_ what you want here16:32
gebi joined16:32
EvanR-work im still trying to understand what --merge does...16:32
drizzd but the documentation is very cryptic16:32
seems to be the same as just "git reset" without any other options16:33
EvanR-work it changes working tree16:33
--mixed does not16:33
Mike||goneMike_lifeguard16:34
EvanR-work im confusetated16:34
bushwakko left16:34
drizzd "git reset --merge HEAD" does not change the working tree, because the "named commit and the current commit" are the same16:34
anxiolytic What are the relative ways to reference a commit called, i.e., head^2, head~2, etc..?16:34
amerine joined16:34
nsussman joined16:35
nsussman left16:35
EvanR-work man git-rev-parse16:35
Gitbot EvanR-work: the git-rev-parse manpage can be found at http://git.or.cz/man/git-rev-parse16:35
MetaCosm if working with git on a share, with multiple people possible accessing it, is the right thing to do to setup the share as a bare and use a local disk, or is it fairly safe to use the share directly?16:36
nsussman joined16:36
EvanR-work depending on your network, it might be simpler if you used the 'blessed repo' and pulled from contributors, and they pulled from you16:36
pushing is more complicated16:37
voxpelli left16:37
nsussmantextarcana16:37
MetaCosm EvanR-work, well, this is for a friend who is sorta starting to use git secretly on configuration / build / image scripts at his work, they keep them on a SMB share16:37
drizzd MetaCosm: It is _not_ safe for multiple people to use the same repository.16:37
MetaCosm and he did the git init right on the share16:38
jMyles locklace: Thanks again for your help - sorry if I'm being a pest. I'm still just not sure how to do what you suggest. I don't know what commands to run. I need an "examples" list to learn from I think.16:38
j416 left16:38
drizzd MetaCosm: and to set up a shared repository, you should use init --shared16:38
(shared as in, for pushing/fetching only, not for sharing working copy and committing directly)16:39
sh1mmer left16:39
MetaCosm drizzd, mostly a non-issue for now, as he is the only user, but I wanted to guide him in the right direction16:40
he is actually using the --author to check in the work other people are doing right now16:40
drizzd MetaCosm: he probably doesn't want a working copy where veryone else can access it16:40
psoo joined16:40
drizzd that's a recipe for disaster, that's like clearcase16:40
jackdempsey joined16:41
bauruine left16:41
drizzd ducks16:41
MetaCosm drizzd, so the recommended setup would be to setup a --shared on the share, and work locally on his box16:41
and then pull/push16:42
hobodave joined16:42
drizzd that would work, yes. If he's the only one to push to it, no need to make it --shared (you can always make it world readable)16:42
MetaCosm well, access to this directory is highly restricted anyway16:42
ToxicFrog left16:42
disappearedng left16:43
EvanR-work git via smb :S ?16:43
ToxicFrog joined16:43
munichpython left16:44
m104 joined16:44
drizzd EvanR-work: should work. If you only use it for push/pull, it's not a performance issue either16:45
actually, at work we don't even have local disk space16:45
everything is on shares16:45
aschueler left16:46
drizzd but that's terrible, yes16:46
yevlempy left16:46
badboy_ left16:48
dj_tjerk joined16:48
camonz joined16:49
LiamH joined16:50
pipegeek left16:51
ft joined16:51
hipe joined16:52
amchale joined16:52
amchale left16:53
rgr joined16:53
badboy_ joined16:53
jepster joined16:53
sagsousuke left16:53
jepster which command fetches a svn repo? git-svn is already installed.16:53
sh1mmer joined16:54
lresende joined16:54
wereHamster jepster: git svn clone ...16:54
jepster thx16:54
aresnick joined16:55
sherr joined16:56
hipe left16:57
drubies joined16:57
kar8nga joined16:58
project2501a left16:59
ph^ left16:59
flazz left16:59
ph^ joined17:00
juan_arandaalvar joined17:01
nanoo left17:01
dwmw2_gonedwmw2_HIO17:02
intripoon left17:02
yevlempy joined17:04
sherr Question: I am a new user of Git and am trying to use it to version control some docs I work on. Unfotunately, the docs are mainly binary and so do not automatically merge (I need to manually copy/paste between any branches).17:04
ph^_ joined17:05
EvanR-work git is really for source code17:05
locklace git is not a great choice for tracking chunks of binary data17:05
joeconyers left17:05
EvanR-work generally, text files17:05
locklace EvanR-work: that's too restrictive, it's fine for lots of things besides code17:05
ssm2017 joined17:06
ssm2017 hello17:06
sherr I have 2 branches in the repo - "2009" and "master" (current docs). I stillo need to occasionally switch to "2009" and then manually merge to master. I am thinking that it would haqve been better to have 2 separate repos - one for 2009 and one for "current". Can I split the repo on branch - how? filter-branch somehow?17:06
MetaCosm sherr, change to latex?17:06
hehe :)17:06
EvanR-work yeah, that would work17:06
fmardini left17:07
sherr I know it is best for text .. and I am looking at switching to docbook. But there are a lot of docs now and only one of me.17:07
ph^ left17:07
riz2 joined17:07
sherr I will be dealing with binary for a long time.17:07
EvanR-work what are they, microsoft word?17:08
textarcana left17:08
sherr It seems a bit painful switching between branches for manual merges (or saved copies). Maybe 2 repos - 2 "clones" would be easier.17:08
ssm2017 i hav copied a folder containing a git repo, after copying, git status is telling me that some files have been modified but they are not modified, how to clean this ?17:08
mrchrisadams_ left17:08
sherr Not MS Word - something called "Help and Manual" http://www.ec-software.com/17:08
EvanR-work ouch17:09
corni left17:09
zodiak left17:09
kipras joined17:09
sherr I inherited this - wanted to reformat but ... pressing need to get docs out, add content etc. Too much current content and would take too long to reformat it all ...17:09
smuf joined17:10
EvanR-work another thing is that if your documents are compressed too, git wont be able to be as disk efficient17:10
loincloth joined17:10
locklace the only thing worse than an opaque binary document format is a little-used opaque binary document format17:10
sherr I tested how efficient it was and it seems OK17:10
Pupeno left17:10
sherr Can I switch 2 branches out (master / 2009) to separate repos easily?17:11
GyrosGeier hmm17:11
GyrosGeier needs a three-way bisect17:11
EvanR-work sherr: git clone ?17:11
mtkd left17:11
EvanR-work GyrosGeier: trisect!17:11
avar joined17:11
GyrosGeier i.e. I have two different behaviours that are wrong, and need to find the commits where each of the wrong behaviours were introduced17:11
however these are related17:12
ph^ joined17:12
sherr EvanR-work: git clone just leaves me with 2 repos, each with the same 2 branches. Then I would need to trim each to the single branch.17:12
EvanR-work you can delete the branches if you want17:12
or ignore them17:12
but this use of git is terrible17:13
MetaCosm sherr, maybe at some point in the future, you can script the convertion :)17:13
sherr EvanR-work: So delete 2009 from the "master" repo and "master" form the 2009 repo (maybe rename 2009 branch to "master")17:13
EvanR-work is it really two branches17:13
or two projects17:14
sherr Put to a new "2009" bare repo on the server17:14
*push17:14
ph^__ joined17:14
sherr It's the same document but branched as a "release" for 2009 - like you'd do in CVS ... :-)17:14
yevlempy left17:15
EvanR-work cant deal with this so early in the morning, good luck ;)17:15
sherr Well, my simple-minded attempt at trying Git anyway. I know it is not ideal for this.17:15
ph^ left17:15
ph^__ left17:15
ph^ joined17:16
jepster left17:16
ph^__ joined17:16
sherr EvanR-work: no prob. Might try the mailing list - easier to document and wait :-) thanks.17:16
Mike_lifeguardMike||gone17:17
aziz left17:18
zoniq left17:19
enherit joined17:19
ph^_ left17:19
zoniq joined17:19
TeckniX left17:20
fskfrsk17:20
TeckniX joined17:20
krawek joined17:21
tobiassjosten left17:21
loincloth left17:22
ehabkost left17:23
krunk-|work left17:23
ehabkost joined17:24
kmartiin joined17:26
bronson left17:26
kmartiin left17:26
jackdempsey left17:27
palisv left17:27
corni joined17:28
jMyles I'm a little lost. I have a repo whose file structure is on a live server. Yet, when I commit a change, the change shows up in git log, but the file that I modified is unchanged on the server.17:29
tvw left17:30
locklace pushing to a non-bare repo?17:30
Espen-_- hehe been there done that :P17:30
jMyles: http://toolmantim.com/thoughts/setting_up_a_new_remote_git_repository17:30
check that out17:30
locklace http://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F17:30
steffkes left17:31
defectiv joined17:31
Espen-_- and what locklace said17:31
yevlempy joined17:31
jMyles locklace: I have looked for a simple explanation of what a "non-bare" repo is, but I'm afraid this is still above me.17:31
ringlej left17:32
Fullmoon joined17:32
Fullmoon left17:32
brodyberg joined17:32
tetha left17:33
corni left17:33
bcoca left17:33
Espen-_- jMyles: non-bare repository: a normal clone, has a working directory with checked out files17:33
jMyles: bare repository: a repository cloned using the --bare option, only includes the files/folders inside of the .git directory17:33
source: http://www.gitready.com/advanced/2009/02/01/push-to-only-bare-repositories.html17:33
bcoca joined17:33
jMyles locklace: OK, I understand the (good) reason why changes are not pushed to the file tree. How then can I create a workflow wherein everybody's changes are viewable on the live development server?17:34
locklace jMyles: a repo is "non-bare" if it has a worktree, "bare" if it doesn't17:35
jMyles Espen-_- : so a "bare" repo doesn't have the actual file structure?17:35
tetha joined17:35
aresnick left17:35
EvanR-work which means you cant use it as the live server17:35
jMyles worktree - OK :-)17:35
Espen-_- jMyles: you need two repos then on your development server17:35
both bare and non-bare17:35
martoche left17:35
jMyles Espen-_- : Yes I think locklace was trying to explain this to me, but I didn't get it. So I'll have a non-bare that will actually serve the files? And a bare that is for developer commits?17:36
bremner or, better, don't deploy with push17:36
locklace jMyles: i explained the best workflow for your situation in detail17:36
JonathanT left17:36
jMyles bremmer: I'm interested - tell or show me more?17:36
bremner use git archive17:36
jMyles locklace: I know :-\ I'm sorry I'm just not turning on to this quickly. It's just barely out-of-reach for me still.17:36
Espen-_- jMyles: I had the same "issue" as you, but I ended up paying for github and get a private repo there17:37
khmarbaise joined17:37
parappa joined17:37
Theravadan joined17:37
jMyles Espen-_-: Really? What did github do for you that a server didn't?17:37
Espen-_- Gitweb never gets as good as github17:38
priidu_ joined17:38
justin-george joined17:38
jMyles locklace: this comment is still mysterious to me: jMyles: you're going to create two clones of the central repo with git clone, one for each web server17:39
Espen-_- And I was wasting to much time on trying get stuff to work and github was cheap.17:39
shruggar left17:39
jotik^^jotik17:39
locklace jMyles: picture a circle called "central". now picture a couple of circles off to the southwest called "prod" and "dev" connected to central by lines with arrows on the prod and dev ends.17:40
ehabkost left17:40
aresnick joined17:40
parasti left17:41
nanoo joined17:41
wolog_ left17:42
corni joined17:42
froschi left17:42
bushwakko joined17:43
ringlej joined17:43
ehabkost joined17:43
rduplain_ joined17:43
rduplain_ left17:44
rduplain left17:44
rduplain joined17:44
locklace left17:47
aresnick left17:48
aresnick joined17:48
jMyles locklace, et. al.: Does it make more sense for us to just edit the files on the server? (like in /var/www/project-devel) ?17:50
locklace joined17:51
Tank` joined17:51
sh1mmer left17:51
Vortex35 left17:52
ddp_ joined17:53
Pupeno joined17:53
froio joined17:54
fool_ joined17:54
fool_ left17:54
fool_ joined17:54
t0rc left17:54
froio any free git repository ?17:55
wereHamster froio: github, gitorious17:55
zodiak joined17:56
doener joined17:56
eli When I create a new branch, and then `git push origin branch-name' it creates the banch on the upstream, but then `git pull' won't work without an explicit `git pull origin branch-name' -- is there some obvious way to do that when the branch is created? (Obvious = not some explicit use of `git remote' to set it up later, something that makes the connection from the start.)17:57
fool__ left17:57
ddp_ left17:58
parappa left17:58
WebDragon joined17:58
ehabkost left17:59
WebDragon so I'm still having this lovely rebase issue17:59
core.autocrlf=true and core.whitespace=nowarn are set17:59
flazz joined17:59
Aides eli: i don't know any, but you just have to use git branch --set-upstream once17:59
eli: (after git-push that is)17:59
WebDragon www.webdragon.net/sgrab.jpg is the current tree in gitk --all17:59
sh1mmer joined18:00
ehabkost joined18:00
bambule joined18:00
WebDragon the feature-footer changes res/css/stylehome.css and res/includes/inc_footerhome.php. whereas the file changed in the develop merge is res/includes/inc_javascript.php so there shouldn't even BE any conflict18:00
and yet...18:00
if I git checkout feature-footer; git rebase develop;18:01
I don't get a rebase. I get error messages.18:01
christophsturm left18:01
WebDragon granted this is 1.6.2.5 (I've got F12 installed on the new 320g drive but haven't migrated myself over fully yet cuz I still need to do my job while everything's in transition)18:02
but still. this should "just work"18:02
vall left18:02
flazz left18:03
WebDragon http://fpaste.org/oucE/ this is the crazy nonsense I get18:03
Vortex35 joined18:03
eli Aides: How should I use it? (I'm trying a few things they don't do what I want...)18:03
icwiener joined18:04
WebDragon I'm _definitely_ not doing anything complex here, and I'm reasonably sure I'm not doing anything specifically _wrong_18:04
so can anyone help me figure out just what's happening here?18:04
przemoc eli: pushing/pulling has nothing to do with tracking. so you cannot expect this commands to do things beyond their scope.18:05
eli: --set-upstream requires git 1.718:06
WebDragon there doesn't seem to be any particular reason for this to happen like it is18:06
Pupeno left18:07
malumalu joined18:07
eli przemoc: I know; but the thing is that pulling on a different clone and switching to the new branch (with just `git pull; git checkout new-branch') *does* set up push/pull from the remote -- it's only on the original clone where the branch was made that it needs to be set explicitly.18:07
(And yes, I'm on 1.7.0.)18:07
WebDragon about the only thing I can do is create a patch from my feature branch, checkout develop and delete the branch, create a new one, and reapply the patch18:07
gebi left18:07
pasky WebDragon: I don't think "nowarn" is valid value for core.whitespace18:09
WebDragon checks18:09
pasky WebDragon: you might want something like -space-before-tab,-blank-at-eol18:10
brizly joined18:10
WebDragon wow I wonder how the hell I screwed that up. the manpage is pretty clear on that in git.config18:10
pasky WebDragon: git is perhaps overly agressive at trying to help you avoid bad whitespaces18:11
froio any free git repository ?with private project storeing?18:11
pasky WebDragon: maybe newer versions work more reasonably, i'm not sure18:11
WebDragon goes all bug-eyed which looks quite humorous on a dragon18:11
przemoc eli: you can have many repositories storing your objects, therefore automatically setting all push/pull target/source _always_ wouldn't be a good thing18:11
pasky hehe18:11
przemoc froio: your computer18:11
WebDragon pasky: the odd thing is, since I'm working with html/css/php/javascript, whitespace is far less of an issue18:11
froio how ?18:11
Pupeno joined18:11
pasky WebDragon: compared to...? :)18:11
froio home git server? how i can do it?18:12
WebDragon but since the files that were changed don't even _conflict_ I shouldn't be seeing any crap whatsoever18:12
pasky WebDragon: well, git rebase works by wrapping git apply which enforces these rules18:12
WebDragon pasky: heh. compared to whatever reasons git would have to bitch about whitespace? :D *shrug for dramatic effect*18:12
godsflaw joined18:13
pasky WebDragon: they cause spurious diffs and conflicts with "invisible" differences18:13
it's just a matter of sanity i guess18:13
WebDragon pasky: I am still confused as to why this would conflict.. if you look at the gitk --all screengrab , there's almost NO difference in the branches18:13
bushwakko left18:13
przemoc eli: if you hate using git remote than push once your branch, delete it, and checkout with tracking18:13
pasky WebDragon: sorry i don't have a working web browser handy18:13
przemoc eli: delete it just locally of course ;]18:14
WebDragon develop is one commit further than feature-footer branch and the three files changed in the two separate commits are different files18:14
pasky well there is no _conflict_18:14
is there?18:14
Mike||goneMike_lifeguard18:14
WebDragon one file in the develop branch and two in the feature branch. none of them are the same file. there should be no conflict18:14
pasky just the whitespace complaint?18:14
WebDragon looks that way yes18:14
so I'm confused about the whitespace complaint18:14
the whitespace should be the same, in the files it's looking at18:14
bluenovember left18:15
bronson joined18:15
AkumaStreak joined18:15
WebDragon I would just expect it to apply the patch and move on18:15
pasky it's not about them being different, just bad18:15
WebDragon hmm18:15
pasky and i'd say this is a bug18:15
maybe newer git has this fixed18:15
WebDragon if that were the case then I could wish it would 'warn' me about them sooner :)18:15
pasky yes that's the real wtf here18:15
WebDragon during normal commits, for example18:15
pasky: thedailywtf.com ? :D18:15
pasky ;)18:16
bdiego joined18:16
WebDragon chuckles deeply18:16
pasky sorry i don't understand the whitespace magicks in git too well18:16
WebDragon apparently neither do I xD18:16
froio home git server? how i can do it?18:16
przemoc froio: do you really need publicly available private repository?18:16
PointMan left18:16
froio yes18:16
pasky why?18:16
DrNick WebDragon: you confused core.whitespace with apply.whitespace18:16
froio secret project18:17
WebDragon DrNick: ahh okay18:17
WebDragon goes to look at that too18:17
przemoc but publicly available for sharing purposes with secret coworkers, right?18:17
froio yes18:17
tvw joined18:17
przemoc froio: so you don't need publicly available server18:17
pasky you could stenographically encode the repository content into photos on flickr18:18
*stegano18:18
even ;)18:18
WebDragon DrNick: so it looks like I could set apply.ignorewhitespace=change18:18
froio lol18:18
WebDragon does that make any sense?18:18
corni left18:18
DrNick WebDragon: yes18:19
WebDragon and then remove my spurious core. bit18:19
I'll try that and reattempt the rebase18:19
przemoc froio: git is designed to work flawlessly "off-line" (in terms of centralised vcs) and decentralised.18:19
nanoo left18:20
przemoc froio: so you can just share your work with team mates while you're online via ssh18:20
nicoulaj left18:21
AkumaStreak left18:21
WebDragon wow it still bitches about whitespace18:22
camonz left18:23
WebDragon man I thought we left segregation behind us decades ago18:23
Textmode left18:23
rgr left18:23
Textmode joined18:23
wolog joined18:23
WebDragon tunes in Galaxy News Radio for a bit of "into each life some rain must fall..."18:24
dreiss joined18:25
froio left18:27
PointMan joined18:28
AkumaStreak joined18:30
WebDragon ok. setting apply.whitespace=nowarn and apply.ignorewhitespace=change now it proceeds without all the spuriousness. however it STILL refused to rebase18:30
now I get this:18:30
http://fpaste.org/zLiT/18:31
feature-footer was checked out and clean according to git status18:31
corni joined18:31
WebDragon www.webdragon.net/sgrab.jpg is the current state of the tree in gitk --all18:31
feature-footer differs from develop by a single commit (merge in another feature branch)18:32
bdiego left18:32
WebDragon (and said other feature branch also branched off the develop branch at the same point as feature-footer)18:32
hyperair left18:32
pasky that looks very weird :(18:33
can't you try newer glibc version?18:33
is this on linux or some other os?18:33
well sorry i gotta go anyway18:33
WebDragon fedora 1118:33
pasky eh18:33
s/glibc/git/ :)18:33
newer git version18:33
hmm18:33
that _is_ strange18:33
WebDragon yeah I'm upgrading to F12 over the next day or two18:33
so I'll have a newer git version18:33
pantsman joined18:34
WebDragon but still IMHO this shouldn't be happening18:34
the files being merged/rebased don't conflict at all18:34
pasky well18:34
biz WebDragon: try to apply the 0001 patch manually with git apply now, it will most probably give you more insight on what's wrong with it18:34
sh1m joined18:34
pasky this message appears to be about uncommitted changes18:34
but yuo say git status produces no output18:34
WebDragon stylehome SHOULD be different since it's a feature branch18:34
and it complains that they differ.. but of course they differ, and they should STILL differ after this branch is moved forward18:35
pasky no18:35
error: res/css/stylehome.css: does not match index18:35
this is the key complaint18:35
WebDragon yeah. what precisely does that mean, to me18:35
it's saying there's uncommitted changes to that file in the feature branch?18:36
bradb left18:36
pasky no, in your worknig tree18:36
hmm18:36
maybe you have some untracked version of the file before rebase start there?18:36
are you sure git status gives absolutely nothing?18:36
afk18:37
WebDragon only three branches exist. master, develop (which was just merged into master) and feature-footer (which was just branched off of develop)18:37
develop proceeded to spawn another feature-branch which had one commit on it and it was then merged into develop and deleted, but that branch diverged from develop at the same commit that feature-footer did18:37
sh1mmer left18:38
sh1msh1mmer18:38
pantsman left18:39
Tank` left18:40
eli przemoc: It's not that I hate using `git remote' -- I'm just wondering why getting a branch sets up both push/pull directions, but pushing a new branch only sets up pushing -- I'd expect there to be some command line option to do the same setup conveniently.18:43
It just seems asymmetric enough to have some reason, and understanding why it's done so will make it easier to explain why things are as they are.18:44
elyob left18:44
przemoc eli: getting a branch and push/pull are two seperate operations, push and pull doesn't do anything with config18:45
ssm2017 left18:45
eli Yes, but there is some configuration happenning when you checkout a branch that also exists on the remote...18:46
tildeequals left18:46
maxter joined18:46
pantsman joined18:46
Zephyrus joined18:46
teukka eli: you can give --set-upstream to push to set up tracking18:47
eli Given that `--set-upstream' is new, perhaps all of these automatic configuration things are still new though.18:47
ringlej left18:48
eli teukka: Aha! That makes sense now -- thanks!18:48
unregistered left18:48
gitte left18:50
dpino joined18:50
hipe joined18:51
chrisadams joined18:51
themill left18:52
flazz joined18:52
bcardarella joined18:53
ebneter joined18:55
loincloth joined18:57
camonz joined18:57
przemoc eli: indeed, I wasn't aware of -u for push.18:58
joeconyers joined18:59
WebDragon if I format the feature branch as a patch. delete the branch, while checking out develop again. create a new feature-branch at the tip of develop, and apply it. it goes cleanly18:59
WebDragon facepalms. it shouldn't be this difficult :D18:59
bauruine joined18:59
eli przemoc: Yeah, it's nice to know about it. I'm in the process of migrating a central repository to git, and will need some description of how common things are done -- which is why I wasn't satisfied with setting it manually or removing the local branch and re-adding it from the remote: I can deal with it myself, but I need to minimize chance of confusion for people who will use these recipes (and we're pretty much19:01
all new to git).19:01
lavamind when adding a submodule to a repository, can it be tied to a particular branch or do all branches have to take in the submodule ?19:01
fullerton left19:02
wereHamster lavamind: it's just like any other file, it can be part of one branch but not part of another branch19:02
parasti joined19:02
JonnyRo joined19:03
jorgeortiz85 joined19:03
project2501a joined19:03
JonnyRo I'm trying to use msysgit on windows. Does anyone have any tips for increasing the amount of memory available to it? I'm getting out of memory errors when checking out large trees19:03
coolcat joined19:03
JonnyRo it appears that git only has about ~250MB available memory allocated to it19:04
_iron joined19:04
lavamind wereHamster: that's what i thought, too, but immediately after adding a submodule, I cannot switch branches : error: Untracked working tree file 'moules/foo/bar.php' would be overwritten by merge.19:04
wereHamster that has nothing to do with the submodule19:05
rgr joined19:05
lavamind is it because I did submodule init ?19:05
wereHamster well, what exactly did you do?19:05
lavamind on my superbranch : submodule add ssh://.... modules/foo followed by submodule init followed by git add modules/foo .gitconfig followed by a regular commit19:07
friskd joined19:08
friskd if my remote repository has a branch that i want to checkout, how do i get to it?19:08
i can't see it on my local maching19:08
*machine19:08
jorgeortiz85 I've been using git-svn successfully for a while, but today I got this error message while trying to do a 'git svn fetch': fatal: ambiguous argument 'aa27a1704498ca023516dea7526158f2d772bbe3^..06482d90eb5eb77254ceb6262759cf6b0e0a9d4b': unknown revision or path not in the working tree. Anyone know what the problem might be?19:08
r11t joined19:09
imajes left19:09
friskd I figured it out.19:10
imajes joined19:11
dekroning joined19:11
Cesario_ left19:11
bushwakko joined19:12
tildeequals joined19:12
dekroning i have a git project, which i would like to copy to a friend, however i don't want to copy all the git repository information along, how can i extract the code without the git info?19:12
anxiolytic left19:13
r11t left19:13
anxiolytic joined19:13
MetaCosm ummmm... don't copy the .git directory... done!19:13
poseid left19:14
dekroning ow oke :-)19:14
r11t joined19:14
zoniq left19:14
pantsman left19:15
r11t left19:18
r11t joined19:18
ddp_ joined19:19
jorgeortiz85 anyone know why git svn fetch might be blowing up with "unknown revision or path not in the working tree"?19:19
fryguy jorgeortiz85: somebody screwed with the old revision history or something19:19
jorgeortiz85 fryguy: in git or in svn?19:20
Alagar joined19:22
kumbayo_ joined19:23
r11t left19:25
David-T left19:25
poseid joined19:26
kumbayo left19:26
git___ joined19:27
git___ how does one track .git directory?19:27
fryguy git___: you don't, you name it something else19:27
if you have actual content in .git that you want to track that isn't metadata for the repository itself19:28
git___ i have a bunch of pre-commit and post-commit stuffs I want to track19:28
fryguy .git is reserved for used by git itself, you can write wrapper scripts that change this if you really really want19:28
git___ okie19:28
fryguy git___: put them in a separate directory and symlink them into .git19:28
Cesario_ joined19:28
git___ ah19:28
carolyn left19:29
fryguy or, as I did in my case, make a separate repo for them and create and install script to install them into a given git repository19:29
themill joined19:29
palisv joined19:29
Tank` joined19:31
scrybe joined19:31
schacon joined19:31
hipe left19:33
yann joined19:33
hipe joined19:34
schacon anyone using notes at all?19:34
scrybe left19:35
Mike_lifeguard where's the skeleton used by git init kept?19:36
Mike_lifeguard wants to add a standard pre-commit script19:36
flazz left19:38
poseid left19:39
Aides /usr/share/git-core/templates I presume19:39
scrybe joined19:39
jMyles left19:41
rook2pawn joined19:42
Pewpewarrows left19:44
Mike_lifeguard great, thanks19:44
rook2pawn So git clone seems to run a bit slower, so i downloaded the zip of my group's repo from github. After I unzip the repo, is there a way to link my local unzip to our groups git project? I.e. simulate git clone19:44
aziz joined19:44
pantsman joined19:45
Mike_lifeguard And if you do "git init" in a repo, it will just update from /usr/share/git-core/templates right?19:46
scrybe left19:46
saste joined19:47
drubies left19:47
pantsman phew, I just moved absolutely everything in a repo into one directory deeper19:47
let's see how git handles this :>19:48
saste hi all19:48
I just did git co OLD_REV19:48
darwin joined19:48
saste now I want to go back to the previous HEAD19:48
git___ how do i use the variables in config?19:48
saste how can I do that?19:49
git___ for example, [core] worktree = /home/git/19:49
iamcam joined19:49
saste I tried to have a look with gitk bute there is no trace of the old HEAD...19:49
git___ echo $core.worktree?19:49
magn3ts joined19:50
wereHamster git___: git config core.worktree19:50
locklace saste: git reflog19:51
rook2pawn How do you link a directory with a git repository, without downloading/cloning the repo?19:51
lresende left19:51
git___ thanks wereHamster19:51
Rhonda rook2pawn: git init and git remote add I would think.19:51
wereHamster rook2pawn: can you explain a bit more?19:51
__iron joined19:52
friskd left19:52
saste locklace: thanks fixed19:52
magn3ts left19:53
flazz joined19:53
wereHamster rook2pawn: ah, I've read the backlog now. The zip you downloaded, was that a normal tarball?19:54
alezandro left19:54
rook2pawn well, I downloaded the zip archive of our group's project, and after i unzip it, i need to link it so my git push and git pull are linked to the remote url19:54
wereHamster in that case do what Rhonda said19:54
rook2pawn Yes, its basically a normal tarball19:54
wereHamster however I don't see a difference between first downloading the tarball and then doing a git init/git fetch and a git clone19:55
_iron left19:55
Twisted_Mentat joined19:55
rook2pawn Thank you Rhonda, wereHamster. What had happened is that our project contains thousands of files and our conection is bad, so git clone fails with tons of net retry's19:55
wereHamster both will use up almost exactly the same amount of bandwidth (and if git clone was slow then git fetch will be slow as well)19:56
charon rook2pawn: a tarball that doesn't contain the .git is useless wrt. saving clone/fetch bandwidth. see man git-bundle for the real solution19:56
Gitbot rook2pawn: the git-bundle manpage can be found at http://git.or.cz/man/git-bundle19:56
thiago left19:57
wereHamster if that is a public repo I'll be happy to create a bundle for you and host it in a place where you can download it via http19:58
David-T joined19:58
novas0x2a joined19:58
mjf joined20:01
novas0x2a1 left20:01
parigaudi left20:02
JackWinter left20:04
bushwakko left20:05
JackWinter joined20:06
jceb joined20:06
pantsman left20:07
Vortex35 left20:07
Vortex34 joined20:07
lucsky left20:07
bushwakko joined20:08
g0bl1n left20:08
bushwakko left20:08
maattd joined20:08
mrchrisadams_ joined20:09
priidu_ left20:10
Raska left20:10
magn3ts joined20:11
icwiener left20:12
rudi_s joined20:13
Alagar left20:13
smuf left20:13
priidu_ joined20:13
anxiolytic what does it mean when git says I'm ahead/behind? [ahead 3, behind 1]20:13
shennyg joined20:14
lucid_lucid20:14
nanoo joined20:14
christophsturm joined20:14
mrchrisadams_ hi guys - I'm trying to get gitweb/gitosis to work on a server with apache - anyone running this setup here?20:16
locklace anxiolytic: your local version of the branch relative to the remote's20:16
rudi_s_ left20:16
Zephyrus left20:17
locklace mrchrisadams_: word is you should use gitolite instead20:17
j416 joined20:17
shiggins joined20:19
wereHamster anxiolytic: the remote has one commit which you don't have, and you have three commits which the remote doesn't have20:20
mrchrisadams_ locklace: I don't think that's an option right now, sadly20:21
Zephyrus joined20:21
mrchrisadams_ would domain/cgi-bin/gitweb.cgi fail silently if it wasn't chmodded?20:21
WebDragon mrchrisadams_: it'd show up in error_log, most likely20:22
as to how silently, it depends on the error reporting20:22
pantsman joined20:22
WebDragon (insofar as the user is concerned)20:22
usually one tries not to expose one's internals to the world wherever possible20:23
unless you're tiger woods20:23
WebDragon runs20:23
magn3ts left20:24
mrchrisadams_ WebDragon: can i trace this in the logs at all? I'm seeing nothing in the apache logs20:25
nor in /var/log/messages20:25
(I'm on centos)20:25
tvw left20:25
lhz left20:27
christophsturm left20:27
thiago_home joined20:27
kdasdasf joined20:28
kdasdasf hi how can i set the editor i want to use to edit commit messages?20:29
pantsman left20:29
maattd kdasdasf: env variable EDITOR20:30
Mike_lifeguard kdasdasf: it uses $EDITOR, but you can use something else for composing messages by setting core.editor20:30
kdasdasf Mike_liefguard like git config --global core.editor "vim"20:31
would this work?20:31
Mike_lifeguard yes20:31
shiggins I have gitosis running on ubuntu just fine. I have created a repository that I am sharing with multiple parties just fine. Question: How do I configure gitosis to support an additional root repository in addition to ~/repository? I see there is an option in gitosis.conf20:31
repositories = repositories but not sure how to use it?20:32
bushwakko joined20:32
WebDragon mrchrisadams_: that's what I meant. apache error_log not /var/log/messags20:32
I'd not expect to see a failed web cgi script show up there20:32
mrchrisadams_ WebDragon: where woudl you normally look when you're trying to troubleshoot something like gitweb?20:34
WebDragon what you'd normally see in there is something along the lines of 'premature end of script headers' if the script has a problem.20:34
if it's permissions then you'd see a normal error for apache, like the 500/404/403 etc20:34
the access_log will also indicate whether it was 200 (OK) or whatever, as well, so look for that file mentioned there, and see what the result-code is20:35
anxiolytic left20:35
WebDragon grep cgi-bin/gitweb.cgi access_log20:35
see what turns up for the result code20:35
anxiolytic joined20:35
Adaptee joined20:35
Mike_lifeguard When working with windows and linux users, autoclrf should be "input" for the linux folks? What for windows folk?20:36
migge joined20:36
pantsman joined20:36
__iron left20:37
WebDragon Mike_lifeguard: the difference between true and input can be found here: http://www.kernel.org/pub/software/scm/git/docs/git-config.html20:37
I'm not sure which would be most preferable from the windows-programmer's side20:38
I try to avoid programming while on windows, wherever possible20:38
anxiolytic left20:38
WebDragon it's just marginally useful enough to play a few games on :P20:38
mrchrisadams_ oh ffs20:39
this server had stale dns20:39
WebDragon switch to google's public dns servers20:39
mrchrisadams_ when i cranked up the verbosity on curl, i saw"Premature end of script headers: gitweb.cgi"20:40
WALoeIII joined20:40
__iron joined20:40
WebDragon|away joined20:40
Cr`eme|Ubuntu joined20:40
Cr`eme|Ubuntu Hello.20:41
WebDragon|away was wondering when that was going to happen20:41
WebDragon left20:41
Cr`eme|Ubuntu Does anyone know if there is a way to integrate git with WEBSITE?20:41
WebDragon|awayWebDragon20:41
WebDragon switch to google's public dns servers : 8.8.8.8 and 8.8.4.420:41
kdasdasf left20:42
froschi joined20:43
lack WebDragon: Good plan! That way they know where I'm going even when I *didn't* search first...20:43
WebDragon lack: that'd be a trick. half the time *I* don't even know where I'm going20:43
xD20:44
trilobytevinse20:44
WebDragon vinse: man evolutions' really accelerating these days20:44
WebDragon hides a chuckle in his coffeemug20:44
krawek left20:44
vinse yeah man, i was pre-cambrian just a few minutes ago!~20:44
dougmencken joined20:45
krawek joined20:45
dougmencken hello again; can you congratulate me? I build git! well yes, only using make || make -k ; mkdir DEST && make -ki install DESTDIR=`pwd`/DEST (coz building man requires python)20:46
d0k left20:46
dougmencken http://manulix.wikidot.com/build-howto20:46
vinse dougmencken: grats! now build it for me on sparc thx20:46
WebDragon dougmencken: "building man requires python" -- a soliloquy on the garden of eden theory20:47
WebDragon hides yet another chuckle20:47
vinse that was pretty good, you can chuckle openly on that imo20:47
dougmencken WebDragon, do you need error messages if I will not use -k ?20:47
gebi joined20:48
WebDragon vinse: *bows*20:48
dougmencken vinse, I will produce shell scripts for building20:48
brizly left20:48
eletuchy left20:48
dougmencken like http://manulix.wikidot.com/local--files/files:pbs/autoconf.pkgbs20:48
eletuchy joined20:49
rgr left20:52
__iron left20:52
yevlempyyev|away20:52
EvanCarroll joined20:53
EvanCarroll http://stackoverflow.com/questions/2404628/how-do-i-join-two-git-repos-without-a-common-root-where-all-modified-files-are-t20:53
mrchrisadams_ left20:53
chrisadams left20:53
brodyberg left20:54
chrisadams joined20:54
mrchrisadams_ joined20:54
__iron joined20:54
jceb left20:55
g0bl1n joined20:56
dougmencken so can you fix this please? for system which don't have any python...20:56
jspiros joined20:57
Wicked joined20:57
tstclair left20:58
tstclair joined20:59
Pewpewarrows joined20:59
ntoll left21:00
EvanCarroll gah21:01
NET||abuse joined21:01
camonz left21:02
iamcamiamcam|afk21:03
johnw joined21:03
iamcam|afk left21:03
wwwald joined21:03
christophsturm joined21:04
nanoo left21:05
mithro left21:06
Tureba left21:06
Markus23 joined21:08
git___ what is the variable for commit_msg?21:08
i'm trying to add the commit message to my pre-commit script21:08
przemoc git___: -F21:09
christophsturm left21:09
girasquid joined21:09
girasquid I'm having some trouble doing a pull - here's the error, something about not being able to merge because one file isn't uptodate: http://dpaste.com/169615/21:10
tatsuya left21:11
dougmencken http://pastebin.org/10602121:11
mssm left21:11
Markus23 Hi, How can git-svn clone get all commits and not only of one specific trunk/branch?21:12
when I do git-svn clone url/to/unstable it only gets the commits from unstable branch21:12
when I do git-svn clone url/to/trunk only from trunk ;(21:12
lack girasquid: You can't merge because you have a local edit in that file that would be touched if git were to go ahead with the merge. What does 'git status' say?21:13
spaceonline joined21:13
girasquid looks like there is a local edit21:14
would stashing work here?21:14
tiglionabbit joined21:14
wereHamster Markus23: --stdlayout or use -b/-t/-T21:14
lack girasquid: Yes. You have 3 choices: Commit it, stash it, or blow it away.21:14
girasquid Alright - thanks21:14
Markus23 wereHamster: were are the -b/-t/-T documented? man git-svn does not tell much about it?21:14
Gitbot wereHamster: the git-svn manpage can be found at http://git.or.cz/man/git-svn21:14
git___ is there way to see commit history of a file?21:15
lack git___: git log -- path/to/file21:16
git___ thanks lack21:16
dougmencken left21:16
lack git___: Or, if you like pretty graphics: gitk -- path/to/file21:16
git___: Technically speaking that's not really the "commit history of the file", but it limits the history shown to only those commits who touched that file.21:16
wereHamster Markus23: it does, maybe your man page is outdated21:16
bushwakko left21:17
git___ ah21:17
Markus23 wereHamster: I would like to get rid of svn on https://svn.libelektra.org/svn/elektra21:17
flazz left21:18
tiglionabbit left21:18
Markus23 so I need something like git-svn clone -T trunk -t tags -b unstable https://svn.libelektra.org/svn/elektra/21:19
wereHamster: the problem is that the unstable branch is deleted already, but git-svn clone https://svn.libelektra.org/svn/elektra/unstable works21:19
malumalu left21:20
wereHamster why is that a problem?21:20
Markus23 wereHamster: I don't know the path for branches? is it . or unstable?21:20
girasquid left21:21
wereHamster Markus23: you might want to use git init and then init the .git/config file manually. I have no experience with git-svn and no idea how well it handles non-standard layouts21:22
s/then init/then edit/21:22
fool__ joined21:22
fool__ left21:22
fool__ joined21:22
Markus23 wereHamster: -T -b and -t are specifically for non-standard layouts, or?21:22
wereHamster yes21:23
mssm joined21:24
killerchicken joined21:24
killerchicken where do I learn how git notes are merged/pushed etc?21:24
fool_ left21:25
magn3ts joined21:26
Markus23 wereHamster: however, I have here a git-svn checkout from trunk and unstable, isn't it possible to get all commits together with git-pull?21:26
SRabbelier joined21:26
hugoxrosa left21:27
schacon killerchicken: i'm writing a blog post on that now, but it seems to be somewhat ill-defined21:28
wereHamster Markus23: sure you can do that, but since the two repositories were created separately they don't share the same root commit. So it likely won't represent the history in the svn repo21:28
killerchicken schacon: please ping me when you're done, that'd be great21:28
rgr joined21:28
schacon basically it seems that you have to setup your refspecs manually21:28
i'll try to remember - you can subscribe to the progit.org feed if you want21:29
killerchicken ok21:29
schacon should be tomorrow or wed if i can figure it out properly21:29
Markus23 wereHamster: you are right, but it should be fixable with git-rebase, or?21:29
hornairs joined21:30
dwmw2_HIOdwmw2_gone21:31
_nickel joined21:31
_nickel when I do a rebase and I have to fix a merge conflict and then add the resolution to the index sometimes I'll end up with no changes to be committed at which point I can't continue my rebase, what am I doing wrong?21:32
_nickel typed too much.21:32
AkumaStreak how do i check in a staged file21:33
but not the version i'm currently changing21:33
commit file puts the one with the most recent changes up for commit21:33
Markus23 How do I get a clean git repos without the git-svn config stuff? git-clone?21:34
hornairs Would anyone mind giving me some assistance deleting some large binary files throughout my repo's history? I've run these commands so far: http://gist.github.com/325776, but when I push to origin (github) there are still these huge objects that take quite a while to compress and send that I never should have added.21:34
wereHamster Markus23: why?21:34
hornairs: man git-filter-branch (it has an example how to do that)21:35
Gitbot hornairs: the git-filter-branch manpage can be found at http://git.or.cz/man/git-filter-branch21:35
Markus23 wereHamster: the idea is that if someone clones my repo he should get the same, and not be bothered that it has been in a svn repo before21:36
wereHamster: there needs to be some meta-info otherwise git-svn could not work?21:36
rook2pawn left21:36
Markus23 git-svn is really great btw...21:38
corni left21:38
EvanCarroll does rebasing work if there in no common root?21:39
tstclair left21:39
EvanCarroll I'm having a git quagmire here and i don't think the advice i got to rebase works if there is no common root21:39
hornairs wereHamster: thanks, the object count is still the same as before, thats not right is it? it doesn't seem to have worked21:39
EvanCarroll http://stackoverflow.com/questions/2404628/how-do-i-join-two-git-repos-without-a-common-root-where-all-modified-files-are-t/21:40
tstclair joined21:40
sagsousuke joined21:41
rook2pawn joined21:41
cenuij left21:43
bradb joined21:43
Wicked left21:45
Ademan joined21:45
ehabkost left21:48
migge left21:49
tvw joined21:49
rduplain left21:50
marcus__imarcusthis21:50
Wicked joined21:50
parasti left21:50
parasti joined21:50
friskd joined21:51
kassah joined21:52
Beaver joined21:52
Beaver www.search2.net (new search engine)21:54
Beaver left21:54
mmattice joined21:54
kassah is there any way with git svn fetch to store a project default author map file? so I don't have to do -A every time I want to fetch it?21:57
EvanCarroll if i search for google, and it shows analytics before the homepage, I know there is a problem21:57
not just analytics, but a javascript21:57
johnw left21:57
kassah at least google.co.jp is the second result =P21:58
Fullmoon joined21:58
Ademan left21:59
j416 left22:00
alezandro joined22:01
ambientsound joined22:01
shiggins left22:01
migge joined22:01
eletuchy left22:02
juan_arandaalvar left22:02
eletuchy joined22:02
ambientsound hi, guys, I've searched all over for the solution but I can't find any relevant solution: "gic gc" dies with "error: failed to run repack". Repository is about 318M. When trying to pull the repo from remote, it gives me "error: git upload-pack: git-pack-objects died with error."22:03
any suggestions?22:03
j416 joined22:03
Mezner left22:03
ambientsound I've tried pack.threads = 1, pack.deltaCacheSize = 1, pack.windowMemory = different sizes on both sides22:03
eFfeM1 joined22:04
ambientsound that's "git gc", sorry. :-)22:04
kassah wishes he could help, but he only started trying to figure out git a few days ago...22:04
ambientsound "git repack" runs fine.22:05
palisv left22:05
magn3ts left22:05
ambientsound However, when running "git repack" it counts 134 objects. On "git gc" it counds 4211 objects.22:06
Zephyrus left22:06
eletuchy left22:07
priidu_ left22:08
Fullmoon left22:09
priidu_ joined22:09
xperience left22:10
erikvold joined22:12
j416 left22:15
priidu_ left22:15
pantsman left22:15
lavamind left22:16
WebDragon left22:16
priidu_ joined22:16
ntoll joined22:17
JonnyRo left22:17
sherr ambientsound: Have you looked at the "fixing a broken repos" at http://git.wiki.kernel.org/index.php/GitFaq#How_to_fix_a_broken_repository.3F22:18
kpreid_ left22:19
bushwakko joined22:20
bushwakko left22:20
jmcantrell left22:22
ambientsound $ git fsck --full22:22
Killed22:22
I've tried gdb'ing it, but backtrace gives nothing22:22
maxter left22:22
spearce rtyler: remember that array index out of bounds exception in gerrit? we think it might have to do with syntax highlighting, someone just found a crash that appears to be caused by it22:23
ben_alman left22:23
drizzd left22:23
hakunin left22:24
amerine left22:24
eFfeM1 left22:24
rtyler spearce: woohoo!22:25
spearce: how did a JS error become a crash? :/22:25
spearce well, js error in the client is a crash of the client :-)22:26
rtyler spearce: not technically, unless your browser is piss-poor :)22:27
dcampano left22:27
rolfb joined22:27
sherr ambientsound: tried latest Git?22:28
ambientsound sherr, no, still running 1.6.2.3.22:28
kpreid_ joined22:29
mm_work left22:29
sherr ambientsound: could be a bug - could be fixed (hopeful). maybe ask on the mailing list? Bad news, whatever it is.22:29
magn3ts joined22:29
git___ left22:29
jasonn1234 left22:29
ambientsound well, working tree is in good condition on at least 2 sides, so I have all the data backed up.22:29
git___ joined22:30
ambientsound however I would like to keep the dev history :-)22:30
sherr ambientsound: sorry I can't help - I am new to it. But good luck.22:30
ambientsound thanks.22:30
I'll ask them to install 1.7.0.2 and see if that fixes anything22:31
jfarcand joined22:31
khmarbaise left22:31
aziz left22:31
jfarcand Anobody have seen: error: git-remote-curl died of signal 1322:32
rtyler spearce: I'm glad we got things with Hudson all set up, we're looking good: http://hudson.brokenco.de/job/Gerrit/15/22:33
kpreid_ left22:34
en1gm4 joined22:36
Ryback_ left22:36
en1gm4 left22:37
frogonwheels joined22:37
webchickwebchick|supper22:37
jasonn1234 joined22:37
imajes left22:38
dannas left22:38
git___ left22:39
Rolenun joined22:39
supaman joined22:40
mark[oz] joined22:40
imajes joined22:40
supaman hey, I am trying out git and it seems to be working well (not that I know much about it, just fiddling) but when I issue git send-email I get "git: 'send-email' is not a git-command. See 'git --help'." but this is supposed to be a supported feature, any idea of why this does not work for me?22:41
kar8nga left22:41
DrNick supaman: you probably haven't installed that package22:42
supaman DrNick: ok, thought it was coupled with the main program ... Ill check it out22:42
scarabx joined22:42
ntoll left22:43
m104 left22:43
supaman DrNick: your right, it is in a sepperate package22:43
DrNick yes, that's why I told you that22:43
supaman even without knowing my distribution ;-) (so it must be like that on all distros)22:44
ereslibre joined22:45
ereslibre left22:45
ereslibre joined22:45
g0bl1n left22:45
dcampano joined22:46
disturb joined22:48
disturb hi folks22:48
rsyring joined22:49
ph^__ left22:50
LiamH left22:50
rsyring I have a local repository and a remote repository on projectlocker. I should have cloned the project locker one down first and used that instead of creating my own, but didn't. How do I get a similiar state out of my current situation?22:50
EricInBNE joined22:50
rsyring I have pushed my master branch to the project locker repository, but that hasn't given me the remote refs like I thought it would.22:51
bob2 are you asking "how do I make two independent repositories that have similar files belive they are related to one another" or "how do I configure git such that 'git push' and 'git pull' don't need extra args"22:52
jfarcand left22:52
frogonwheels hmm.. do you think an hour is excessive for a git repack on win32 approx 1gb freshly exported repo ?22:53
rsyring bob2: I think I am asking: "how do I take the current local repository and push it to the remote repository in such a way that the result would be the same as if I had cloned the empty remote repository and then made my changes to that." Does that help?22:53
laj left22:53
jailbox left22:54
rsyring I probably have to do more than a push...but not sure what.22:54
bob2 ah, the remote is empty?22:54
rsyring bob2: it was, until I just pushed my master branch to it.22:55
bob2: but I don't have the remote refs like I thought I would and am not sure how to create them.22:55
eletuchy joined22:59
killerchicken_ joined23:00
ixti left23:01
jelmer left23:03
killerchicken left23:03
davr maybe you want the --mirror flag, check the man git-push page23:05
Gitbot davr: the git-push manpage can be found at http://git.or.cz/man/git-push23:05
dwmw2_gonedwmw2_HIO23:06
flaguy48 joined23:07
PointMan left23:07
kumbayo_ left23:07
ntoll joined23:08
Yuuhi left23:09
eletuchy left23:10
bcardarella left23:11
WALoeIII left23:11
WALoeIII joined23:11
eletuchy joined23:13
jailbox joined23:13
GodSpeed9 joined23:13
bitcrave joined23:14
loincloth left23:15
supaman left23:15
kpreid_ joined23:16
andres_ left23:17
wwwald left23:17
thiago_homethiago23:17
bitcrave Has anyone seen a branch in their git repo named "-" every?23:18
bob2 bet you typoed a co -b23:18
ntoll left23:18
Textmode night all23:18
novas0x2a1 joined23:18
Textmode left23:19
Theravadan left23:20
novas0x2a left23:22
bentob0x left23:22
kpreid_ left23:22
kpreid_ joined23:22
bitcrave bob2: so im looking through the log history of commands in linux and im not seeing a typo... which doesn't really mean anything cause i don't know when this problem started.... is someone did make a mistake... how would one do a git checkout - ????23:23
andres_ joined23:24
bob2 maybe -- -23:24
or fix it in .git23:24
scarabx left23:25
maattdmaattd|away23:26
kipras left23:27
kpreid_ left23:27
foo Let's say I'm working with git to manage a website. If I am working in the repository (which is set as the webroot), then how would I use "git push" ?23:28
bob2 too vague23:29
what do you want 'git push' to do23:29
jelmer joined23:30
foo bob2: not sure, that's a good question. Can I have it push to another repository?23:30
mssm left23:30
bob2 yes, that's what push does23:30
priidu_ left23:30
foo oh, then nevermind. :)23:31
bob2 however, as we said the other day, pushing to non-bare repositories is a bad idea23:31
hgimenez joined23:31
foo bob2: fwiw, I think you were the one that told me, what's the disadvantage of setting my webroot (vhost) to be a repository? You just said it was a bad idea, but I don't think I got the reasoning behind that23:31
bob2 I don't think I did say that23:32
I think I probably said that pushing to it directly was a bad idea23:32
foo aha, I see23:32
bob2 so you need /another/ repository23:32
loincloth joined23:32
priidu_ joined23:33
foo hm, just checked logs, my mistake23:33
bob2: so, the idea behind what you're saying is to create another repository, and when things get pushed into that, I manually cp files over to the actual webroot?23:35
bob2 no23:35
pretty sure I suggested a hook script that 'cd /webroot ; git pull'23:35
eletuchy left23:35
psoo left23:35
cloudhead joined23:36
ben_alman joined23:36
webchick|supperwebchick23:36
rook2pawn left23:36
andres_ left23:36
navap left23:36
foo bob2: hm, and that would pull from another repository. Yeah, but for it to pull from another repository, doesn't /webroot have to be a repository? Or can I do git pull anywhere? (as long as I specify which repository to pull from)23:36
bob2 :(23:37
yes23:37
no23:37
I thought we just agreed that having the webroot be a repository was fine23:38
przemoc left23:38
dforsten left23:38
foo err, darn it, why is this taking me so long to grasp. right, we did23:38
foo rereads your responses23:38
przemoc joined23:39
GodSpeed9 left23:40
foo bob2: ok, to avoid pushing to a non-bare repository, I should be fine if I: create directory, git init; copy over the files I want in there (eg. the webroot), then git add them, then I can rename the directory to be my webroot and change the other one to be webroot-old or something - yeah?23:40
rook2pawn joined23:41
bob2 that makes a single non-bare git repository, but has nothing to do with all the other things you have to do23:41
foo bob2: oh. if I already have an existing webroot/website and I want to add it to git, how do I start if it can't be non-bare?23:42
bob2 I'm lost23:43
so23:43
you need a non-bare repository in your webroot23:43
that's fine, and the above steps do that23:43
andres_ joined23:43
rolfb left23:46
level09 joined23:46
loincloth left23:46
foo rereads23:46
TeckniX left23:47
anxiolytic joined23:47
level09 I'm total new to GIT, what is the best workflow to use GIT for a team of developers23:47
darwin left23:47
rctay joined23:47
foo says to self, "pushing to webroot directly is a bad idea".23:48
foo bob2: so, if I understand, pushing to a webroot directory is bad, it's better to pull, correct? Or no?23:49
bob2 since it would need to be non-bare, yes23:50
Mage_Dude left23:51
tvw left23:52
thiago left23:53
frogonwheels level09: I believe one of the strengths of git is that it supports a number of development styles and scenarios23:53
.. or better, 'any number of'23:54
gebi left23:55
level09 frogonwheels: great, I'm looking for a way to manage a website23:55
frogonwheels: what would be the best scenario for that ?23:55
I was thinking of having one server for repository, and let developers clone it and commit to it23:56
Wandrewvious joined23:56
level09 does that make sense ?23:56
Paraselene_ left23:56
Mage_Dude joined23:56
frogonwheels certainly, that's a fairly standard way, and the way I'm setting up ours.23:57
err.. not 'commit' to it.. push to it23:57
.. so you clone it, then pull updates from it..23:57
commit to your local clone, then push changes up to the server23:57
Markus23 left23:58
tbf left23:58
madewokherd joined23:58
level09 frogonwheels: thanks, how is the changes pushed to the server ?23:58
frogonwheels git push23:59
level09 so that is equivalent to commiting a change on the server?23:59
Wandrewvious left23:59
frogonwheels level09: kinda.23:59
level09: better in most ways than commiting to a server23:59
cannonball left23:59
Wandrewvious joined23:59

Logs Search ←Prev date Next date→ Channels Documentation